This ports TestAstFunc2 from our home-grown content storage system to the txtar package. Since a single file can be used to represent the entire folder hierarchy, this makes it much easier to see and edit tests.
13 lines
195 B
Plaintext
13 lines
195 B
Plaintext
some comment can go here!
|
|
|
|
-- main.mcl --
|
|
import "fmt"
|
|
|
|
test fmt.printf("answer: %d", 42) {}
|
|
-- files/file1 --
|
|
this is file1
|
|
-- files/file2 --
|
|
this is file2
|
|
-- OUTPUT --
|
|
Vertex: test[answer: 42]
|