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>
11 lines
165 B
Plaintext
11 lines
165 B
Plaintext
-- main.mcl --
|
|
# this should be okay, because var is shadowed
|
|
$x = "hello"
|
|
if true {
|
|
$x = "world" # shadowed
|
|
test $x {}
|
|
}
|
|
-- OUTPUT --
|
|
Vertex: const
|
|
Vertex: const
|