lua: add test
Closes Homebrew/homebrew#26646. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
c5d63b6bd9
commit
d21d29a51c
1 changed files with 6 additions and 0 deletions
|
@ -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__
|
||||
|
|
Loading…
Reference in a new issue