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>
20 lines
288 B
Plaintext
20 lines
288 B
Plaintext
-- main.mcl --
|
|
# variable shadowing both
|
|
# this should be okay, because var is shadowed
|
|
$x = "hello"
|
|
if true {
|
|
$x = "world" # shadowed
|
|
test "t2" {
|
|
stringptr => $x,
|
|
}
|
|
}
|
|
test "t1" {
|
|
stringptr => $x,
|
|
}
|
|
-- OUTPUT --
|
|
Vertex: const
|
|
Vertex: const
|
|
Vertex: const
|
|
Vertex: const
|
|
Vertex: const
|