Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: test/file_message_test.dart

Issue 1028813002: Introduce span with line context (Closed) Base URL: git@github.com:dart-lang/source_span.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/src/span.dart ('K') | « pubspec.yaml ('k') | test/file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/file_message_test.dart
diff --git a/test/file_message_test.dart b/test/file_message_test.dart
index 18b34e71bc276f44edd9e053a0e9000133e2eced..cbda09aacf265be8fdde5a342e588d272fbab070 100644
--- a/test/file_message_test.dart
+++ b/test/file_message_test.dart
@@ -60,16 +60,15 @@ zip zap zop
});
test("works for a point span in an empty file", () {
- expect(new SourceFile("").location(0).pointSpan().message("oh no"),
- equals("""
+ expect(new SourceFile("").location(0).pointSpan().message("oh no"), equals(
+ """
line 1, column 1: oh no
^"""));
});
test("works for a single-line file without a newline", () {
- expect(new SourceFile("foo bar").span(0, 7).message("oh no"),
- equals("""
+ expect(new SourceFile("foo bar").span(0, 7).message("oh no"), equals("""
line 1, column 1: oh no
foo bar
^^^^^^^"""));
« lib/src/span.dart ('K') | « pubspec.yaml ('k') | test/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698