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,9 +43,9 @@ benchmark = (fn) ->
nil, fn! nil, fn!
read_all = (fname) -> read_all = (fname) ->
f = io.open(fname, "r") if f = io.open(fname, "r")
with f\read "*a" with f\read "*a"
f\close! f\close!
diff_file = (a_fname, b_fname) -> diff_file = (a_fname, b_fname) ->
out = io.popen(options.diff.tool .. " ".. a_fname .. " " .. b_fname, "r")\read "*a" out = io.popen(options.diff.tool .. " ".. a_fname .. " " .. b_fname, "r")\read "*a"
@ -107,7 +107,7 @@ describe "input tests", ->
\close! \close!
else else
expected_str = read_all output_fname name 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 string_assert expected_str, code