From 8d72abecdc1a13dcc3964614d293f9f765e35a57 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 3 Apr 2015 20:59:26 +0800 Subject: v8: add test Signed-off-by: Xu Cheng --- Library/Formula/v8.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3