Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
fix test in formula
Browse files Browse the repository at this point in the history
  • Loading branch information
liufengyun committed May 25, 2017
1 parent d3fe2c9 commit ea8fe6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dotty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ def install
file = testpath/"Test.scala"
file.write <<-EOS.undent
object Test {
def main(args: Array[String]) {
def main(args: Array[String]) = {
println(s"${2 + 2}")
}
}
EOS

out = shell_output("#{bin}/dotr #{file}").strip
shell_output("#{bin}/dotc #{file}")
out = shell_output("#{bin}/dotr Test").strip

assert_equal "4", out
end
Expand Down

0 comments on commit ea8fe6f

Please sign in to comment.