aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-01-02 16:22:25 +0800
committerMike McQuaid2015-01-02 10:57:52 +0000
commita78a67d0fe46c2d3d887a06a40729d0877732522 (patch)
treeef743d0b5b4e167e78d8633da42c8aae1c178b61 /Library
parent6daac88de337334e46908f2d78b5215eaa365bf1 (diff)
downloadhomebrew-a78a67d0fe46c2d3d887a06a40729d0877732522.tar.bz2
s-lang: add test
Closes #35455.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/s-lang.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/s-lang.rb b/Library/Formula/s-lang.rb
index fbe12ab1c..992b4af79 100644
--- a/Library/Formula/s-lang.rb
+++ b/Library/Formula/s-lang.rb
@@ -25,4 +25,8 @@ class SLang < Formula
system "make"
system "make", "install"
end
+
+ test do
+ assert_equal "Hello World!", shell_output("#{bin}/slsh -e 'message(\"Hello World!\");'").strip
+ end
end