fix error for when test isn't build

This commit is contained in:
leaf corcoran 2012-10-31 09:57:07 -07:00
parent 5b9e1a4389
commit 32a2c52eec

View File

@ -43,7 +43,7 @@ benchmark = (fn) ->
nil, fn!
read_all = (fname) ->
f = io.open(fname, "r")
if f = io.open(fname, "r")
with f\read "*a"
f\close!
@ -107,7 +107,7 @@ describe "input tests", ->
\close!
else
expected_str = read_all output_fname name
return "Test not built: " .. input_fname(name) unless expected_str
error "Test not built: " .. input_fname(name) unless expected_str
string_assert expected_str, code