| Index: test/file_message_test.dart
|
| diff --git a/test/file_message_test.dart b/test/file_message_test.dart
|
| index 5935c58820e76a8ba7ea42d2c2ca2bdb51b19c4f..d78a65172a34078923ae65fbfdc81fa29950ca7b 100644
|
| --- a/test/file_message_test.dart
|
| +++ b/test/file_message_test.dart
|
| @@ -59,6 +59,15 @@ zip zap zop
|
| ^"""));
|
| });
|
|
|
| + test("works for a point span at the end of the file with no trailing newline",
|
| + () {
|
| + file = new SourceFile("zip zap zop");
|
| + expect(file.location(11).pointSpan().message("oh no"), equals("""
|
| +line 1, column 12: oh no
|
| +zip zap zop
|
| + ^"""));
|
| + });
|
| +
|
| test("works for a point span in an empty file", () {
|
| expect(new SourceFile("").location(0).pointSpan().message("oh no"),
|
| equals("""
|
|
|