Skip to content

Instantly share code, notes, and snippets.

@duckinator
Forked from alexnask/test.test
Created June 15, 2012 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duckinator/2938459 to your computer and use it in GitHub Desktop.
Save duckinator/2938459 to your computer and use it in GitHub Desktop.
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