class Javarepl < Formula desc "Read Eval Print Loop (REPL) for Java" homepage "https://github.com/albertlatacz/java-repl" url "https://github.com/albertlatacz/java-repl/releases/download/414/javarepl-414.jar" sha256 "9817f2a1af4541a7968d25050fd7aa2e9dbb596851431d1d751c05d36d52230f" bottle :unneeded def install libexec.install "javarepl-#{version}.jar" bin.write_jar_script libexec/"javarepl-#{version}.jar", "javarepl" end test do assert_match "65536", pipe_output("#{bin}/javarepl", "System.out.println(64*1024)\n:quit\n") end end