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__