diff options
| author | Mike Naberezny | 2014-05-27 12:17:59 -0700 |
|---|---|---|
| committer | Jack Nagel | 2014-05-27 20:31:02 -0500 |
| commit | 545b9014ae8abd9518a168db198cc40b25fca151 (patch) | |
| tree | e2acc02b0145b2986fb808bca347e45d72afc300 /Library | |
| parent | 23a059c5e2d35dc65c6f809c6c43d2289ee5f36d (diff) | |
| download | homebrew-545b9014ae8abd9518a168db198cc40b25fca151.tar.bz2 | |
picolisp: add test
Closes #29629.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/picolisp.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/picolisp.rb b/Library/Formula/picolisp.rb index 279ef84c0..bcb04278b 100644 --- a/Library/Formula/picolisp.rb +++ b/Library/Formula/picolisp.rb @@ -10,4 +10,13 @@ class Picolisp < Formula system "make", "-C", src_dir bin.install "bin/picolisp" end + + test do + path = testpath/"hello.lisp" + path.write '(prinl "Hello world") (bye)' + + out = `#{bin}/picolisp #{path}` + assert_equal "Hello world\n", out + assert_equal 0, $?.exitstatus + end end |
