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 library pub_semver.test.version_range_test; | |
6 | |
7 import 'package:test/test.dart'; | 5 import 'package:test/test.dart'; |
8 | 6 |
9 import 'package:pub_semver/pub_semver.dart'; | 7 import 'package:pub_semver/pub_semver.dart'; |
10 | 8 |
11 import 'utils.dart'; | 9 import 'utils.dart'; |
12 | 10 |
13 main() { | 11 main() { |
14 group('constructor', () { | 12 group('constructor', () { |
15 test('takes a min and max', () { | 13 test('takes a min and max', () { |
16 var range = new VersionRange(min: v123, max: v124); | 14 var range = new VersionRange(min: v123, max: v124); |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 expect(result, equals(new VersionRange( | 439 expect(result, equals(new VersionRange( |
442 min: v003, max: v114, includeMin: true, includeMax: true))); | 440 min: v003, max: v114, includeMin: true, includeMax: true))); |
443 }); | 441 }); |
444 }); | 442 }); |
445 | 443 |
446 test('isEmpty', () { | 444 test('isEmpty', () { |
447 expect(new VersionRange().isEmpty, isFalse); | 445 expect(new VersionRange().isEmpty, isFalse); |
448 expect(new VersionRange(min: v123, max: v124).isEmpty, isFalse); | 446 expect(new VersionRange(min: v123, max: v124).isEmpty, isFalse); |
449 }); | 447 }); |
450 } | 448 } |
OLD | NEW |