Use first text range for diagnostics with multiple ranges.

Move TEXT_RANGE_COMPARATOR to DiagnosticUtils.
This commit is contained in:
Pavel V. Talanov
2012-08-01 16:13:58 +04:00
parent f58ba37d4f
commit d45145b3a7
5 changed files with 41 additions and 16 deletions
@@ -116,6 +116,14 @@ public class CliTest {
executeCompilerCompareOutput(args);
}
@Test
public void multipleTextRangesInDiagnosticsOrder() throws Exception {
String[] args = {
"-src", "compiler/testData/cli/multipleTextRangesInDiagnosticsOrder.kt",
"-output", tmpdir.getTmpDir().getPath()};
executeCompilerCompareOutput(args);
}
@Test
public void help() throws Exception {
executeCompilerCompareOutput(new String[] {"-help"});