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>
29 lines
474 B
Plaintext
29 lines
474 B
Plaintext
-- main.mcl --
|
|
import "second.mcl"
|
|
|
|
include second.xclass
|
|
-- second.mcl --
|
|
import "os"
|
|
import "fmt"
|
|
|
|
class xclass {
|
|
#import "os" # this should not be required, top-level should be enough
|
|
|
|
$aaa = if os.is_debian() { "bbb" } else { "ccc" }
|
|
|
|
print "${aaa}" {
|
|
msg => "hello",
|
|
}
|
|
}
|
|
-- OUTPUT --
|
|
Edge: FuncValue -> call # fn
|
|
Edge: call -> if # c
|
|
Edge: const -> if # a
|
|
Edge: const -> if # b
|
|
Vertex: FuncValue
|
|
Vertex: call
|
|
Vertex: const
|
|
Vertex: const
|
|
Vertex: const
|
|
Vertex: if
|