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>
16 lines
188 B
Plaintext
16 lines
188 B
Plaintext
-- main.mcl --
|
|
import "fmt"
|
|
|
|
# function statement
|
|
func sq1($x) {
|
|
$x + $x
|
|
#$x + 3
|
|
#6
|
|
}
|
|
|
|
$x1 = sq1(3) # 3^2 + 4 = 13
|
|
|
|
test fmt.printf("sq1: %d", $x1) {}
|
|
-- OUTPUT --
|
|
Vertex: test[sq1: 6]
|