lua: add test

Closes Homebrew/homebrew#26646.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Mike Naberezny 2014-02-11 20:25:30 -08:00 committed by Adam Vandenberg
parent c5d63b6bd9
commit d21d29a51c

View file

@ -62,6 +62,12 @@ class Lua < Formula
(lib+"pkgconfig").install 'etc/lua.pc'
end
test do
output = `#{bin}/lua -e "for i=0,9 do io.write(i) end"`
assert_equal "0123456789", output
assert_equal 0, $?.exitstatus
end
end
__END__