v8: add test

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-04-03 20:59:26 +08:00
parent 7a5065e3f0
commit a736fc86ce

View file

@ -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