These test both graph shape consistency and single value outputs. Eventually we want to make the graph shape tests more precise, and also verify specific outputs how it used to be. For now, this is okay. Co-authored-by: Samuel Gélineau <gelisam@gmail.com>
17 lines
291 B
Plaintext
17 lines
291 B
Plaintext
-- main.mcl --
|
|
import "iter"
|
|
|
|
$fn = func($x) { # notable because concrete type is fn(t1) t2, where t1 != t2
|
|
len($x)
|
|
}
|
|
|
|
$in1 = ["a", "bb", "ccc", "dddd", "eeeee",]
|
|
|
|
$out1 = iter.map($in1, $fn)
|
|
|
|
$t1 = template("out1: {{ . }}", $out1)
|
|
|
|
test $t1 {}
|
|
-- OUTPUT --
|
|
Vertex: test[out1: [1 2 3 4 5]]
|