Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shalupov committed Feb 6, 2013
1 parent ffedb64 commit a6468bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions compiler/testData/cli/help.out
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Usage: org.jetbrains.jet.cli.jvm.K2JVMCompilerArguments
-verbose [flag] Enable verbose logging output
-version [flag] Display compiler version
-help (-h) [flag] show help
-kotlinHome [String] Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
OK
1 change: 1 addition & 0 deletions compiler/testData/cli/wrongArgument.out
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ Usage: org.jetbrains.jet.cli.jvm.K2JVMCompilerArguments
-verbose [flag] Enable verbose logging output
-version [flag] Display compiler version
-help (-h) [flag] show help
-kotlinHome [String] Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
INTERNAL_ERROR
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ protected void checkHeader(@NotNull MessageChecker checker) {
checker.expect(Message.info().textStartsWith("Using kotlinHome="));
checker.expect(Message.info().textStartsWith("Invoking in-process compiler"));
checker.expect(Message.info().textStartsWith("Kotlin Compiler version"));
checker.expect(Message.stats().textStartsWith("Using Kotlin home directory"));
checker.expect(Message.stats().text("Configuring the compilation environment"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void checkMessages(Message other) {
other.message.matches(textMatchesRegexp));
return;
}
Assert.assertEquals(other.message, this.message);
Assert.assertEquals(this.message, other.message);
}

@Override
Expand Down

0 comments on commit a6468bd

Please sign in to comment.