languagetool: add test do block

Closes Homebrew/homebrew#46535.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
William 2015-12-01 17:35:52 +08:00 committed by Mike McQuaid
parent 9f5d4cafa0
commit 4c0586c40b

View file

@ -18,4 +18,8 @@ class Languagetool < Formula
(bin+"languagetool-server").write server_script(libexec/"languagetool-server.jar")
bin.write_jar_script libexec/"languagetool.jar", "languagetool-gui"
end
test do
pipe_output("#{bin}/languagetool -l en-US -", "This is a test.")
end
end