require "stdlib/spec.mt"
describe("Fish") do
describe("#swim") do
it("moves the fish forward")do
assert(false)
end
end
end
Will now print:
Fish #swim moves the fish forward
Assertion failed.
Expected: true
Got: false
In red :D
Also with this came a simple module Color with #colored which is what is used for printing red and green stuff here. To make that work, I added some lexing for escape codes (notably \e).
This completes #139 and #141
Will now print:
In red :D
Also with this came a simple module
Color
with#colored
which is what is used for printing red and green stuff here. To make that work, I added some lexing for escape codes (notably\e
).