Skip to content

Commit

Permalink
fix ReplSuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
witgo committed May 9, 2014
1 parent c458928 commit 2c543b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions repl/src/test/scala/org/apache/spark/repl/ReplSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ class ReplSuite extends FunSuite {
}

def assertContains(message: String, output: String) {
assert(output.contains(message),
val isContain=output.contains(message)
assert(isContain,
"Interpreter output did not contain '" + message + "':\n" + output)
}

def assertDoesNotContain(message: String, output: String) {
assert(!output.contains(message),
val isContain=output.contains(message)
assert(!isContain,
"Interpreter output contained '" + message + "':\n" + output)
}

Expand Down

0 comments on commit 2c543b9

Please sign in to comment.