OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:unittest/unittest.dart'; | 5 import 'package:test/test.dart'; |
6 import 'package:source_span/source_span.dart'; | 6 import 'package:source_span/source_span.dart'; |
7 | 7 |
8 main() { | 8 main() { |
9 var location; | 9 var location; |
10 setUp(() { | 10 setUp(() { |
11 location = new SourceLocation(15, | 11 location = new SourceLocation(15, |
12 line: 2, column: 6, sourceUrl: "foo.dart"); | 12 line: 2, column: 6, sourceUrl: "foo.dart"); |
13 }); | 13 }); |
14 | 14 |
15 group('errors', () { | 15 group('errors', () { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 var other = new SourceLocation(10, sourceUrl: "foo.dart"); | 92 var other = new SourceLocation(10, sourceUrl: "foo.dart"); |
93 expect(location, isNot(equals(other))); | 93 expect(location, isNot(equals(other))); |
94 }); | 94 }); |
95 | 95 |
96 test("a different source isn't equal", () { | 96 test("a different source isn't equal", () { |
97 var other = new SourceLocation(15, sourceUrl: "bar.dart"); | 97 var other = new SourceLocation(15, sourceUrl: "bar.dart"); |
98 expect(location, isNot(equals(other))); | 98 expect(location, isNot(equals(other))); |
99 }); | 99 }); |
100 }); | 100 }); |
101 } | 101 } |
OLD | NEW |