diff options
| author | Xu Cheng | 2015-04-03 20:59:26 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-04-03 20:59:48 +0800 |
| commit | 8d72abecdc1a13dcc3964614d293f9f765e35a57 (patch) | |
| tree | 58e1e1aa01bcdf6b61224c1650919f31ef261f29 /Library | |
| parent | 572688de3d38bae48de8f5e9e229502db47b6031 (diff) | |
| download | homebrew-8d72abecdc1a13dcc3964614d293f9f765e35a57.tar.bz2 | |
v8: add test
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/v8.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/v8.rb b/Library/Formula/v8.rb index 8259ae276..751fecb8b 100644 --- a/Library/Formula/v8.rb +++ b/Library/Formula/v8.rb @@ -64,4 +64,8 @@ class V8 < Formula bin.install "d8", "mksnapshot", "process", "shell" => "v8" end end + + test do + assert_equal "Hello World!", pipe_output("#{bin}/v8 -e 'print(\"Hello World!\")'").chomp + end end |
