We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c458928 commit 2c543b9Copy full SHA for 2c543b9
repl/src/test/scala/org/apache/spark/repl/ReplSuite.scala
@@ -56,12 +56,14 @@ class ReplSuite extends FunSuite {
56
}
57
58
def assertContains(message: String, output: String) {
59
- assert(output.contains(message),
+ val isContain=output.contains(message)
60
+ assert(isContain,
61
"Interpreter output did not contain '" + message + "':\n" + output)
62
63
64
def assertDoesNotContain(message: String, output: String) {
- assert(!output.contains(message),
65
66
+ assert(!isContain,
67
"Interpreter output contained '" + message + "':\n" + output)
68
69
0 commit comments