-
-
Save duckinator/2938459 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import testing // Could be made implicit when you pass --test to rock? | |
// The test is assumed to be in <name>.ooc | |
compile_stdout := "Spawning bunnies in snowflake/Makefile | |
[ OK ] | |
" | |
runtime_stdout := " | |
Done. | |
" | |
test("name" => "SampleTest", | |
compile("stdout" => compile_stdout, "exit" => 0, "flags" => "-v"), | |
runtime("flags" => "foo", "stdin" => "magic!" "stdout" => runtime_stdout)) | |
// Currently supported vars: name | |
// Currently supported vars for compile(): stdout, stderr, exit, flags | |
// Currently supported vars for runtime(): stdin, stdout, stderr, exit, flags, flags | |
run_tests() // Could be made implicit when you pass --test to rock? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment