From d21d29a51c0dd4a4dff5a21b735e2105781608ab Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Tue, 11 Feb 2014 20:25:30 -0800 Subject: [PATCH] lua: add test Closes Homebrew/homebrew#26646. Signed-off-by: Adam Vandenberg --- Formula/lua.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/lua.rb b/Formula/lua.rb index 060dfd001e..9bfc321e97 100644 --- a/Formula/lua.rb +++ b/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__