mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
fix error for when test isn't build
This commit is contained in:
parent
5b9e1a4389
commit
32a2c52eec
@ -43,7 +43,7 @@ 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!
|
||||||
|
|
||||||
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user