aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-02-11 20:25:30 -0800
committerAdam Vandenberg2014-02-11 20:27:31 -0800
commit6289747cf46d1bebc86c65200ddb30b5e658f6cb (patch)
treef3c4eea244f88002380d6d3066b125892e1181c6 /Library/Formula
parenteedb1699ec3b01e466c31c53ef21aa004f41c49c (diff)
downloadhomebrew-6289747cf46d1bebc86c65200ddb30b5e658f6cb.tar.bz2
lua: add test
Closes #26646. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/lua.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb
index 060dfd001..9bfc321e9 100644
--- a/Library/Formula/lua.rb
+++ b/Library/Formula/lua.rb
@@ -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__