Skip to content

Instantly share code, notes, and snippets.

@zonpantli
Created February 7, 2011 18:05
Show Gist options
  • Save zonpantli/814849 to your computer and use it in GitHub Desktop.
Save zonpantli/814849 to your computer and use it in GitHub Desktop.
calculatrix (prn "dbg" line result output)
"dbg" " => 29" " 29" #<StringWriter => 29
>
"dbg" " => Invalid operand: foo" " Invalid operand: foo" #<StringWriter => Invalid operand: foo
>
"dbg" " => Invalid command: foo" " Invalid command: foo" #<StringWriter => Invalid command: foo
>
"dbg" " => 2" " 2" #<StringWriter => 2
=> 4
>
FAIL at (test_calculatrix.clj:54)
Expected: "4"
Actual: "2"
"dbg" " => 3/2" " 3/2" #<StringWriter => 3/2
>
"dbg" " => 8" " 8" #<StringWriter => 8
>
"dbg" " => {a 2}" " {a 2}" #<StringWriter => {a 2}
=> 6
>
FAIL at (test_calculatrix.clj:61)
Expected: "6"
Actual: "{a 2}"
"dbg" " => {a 42}" " {a 42}" #<StringWriter => {a 42}
=> {b 42, a 42}
=> 84
>
FAIL at (test_calculatrix.clj:62)
Expected: "84"
Actual: "{a 42}"
"dbg" " => Wrong number of arguments to +: expects 2, you gave 3." " Wrong number of arguments to +: expects 2, you gave 3." #<StringWriter => Wrong number of arguments to +: expects 2, you gave 3.
>
"dbg" " => 4" " 4" #<StringWriter => 4
>
"dbg" " => 0" " 0" #<StringWriter => 0
>
FAILURE: 3 facts were not confirmed. (But 15 were.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment