Chromium Code Reviews| Index: utils/tests/pub/pubspec_test.dart |
| =================================================================== |
| --- utils/tests/pub/pubspec_test.dart (revision 14114) |
| +++ utils/tests/pub/pubspec_test.dart (working copy) |
| @@ -36,9 +36,9 @@ |
| var foo = pubspec.dependencies[0]; |
| expect(foo.name, equals('foo')); |
| - expect(foo.constraint.allows(new Version(1, 2, 3))); |
| - expect(foo.constraint.allows(new Version(1, 2, 5))); |
| - expect(!foo.constraint.allows(new Version(3, 4, 5))); |
| + expect(foo.constraint.allows(new Version(1, 2, 3)), isTrue); |
| + expect(foo.constraint.allows(new Version(1, 2, 5)), isTrue); |
| + expect(!foo.constraint.allows(new Version(3, 4, 5)), isTrue); |
|
nweiz
2012/10/26 18:36:33
Can we get rid of the "!" and use isFalse?
gram
2012/10/26 22:26:27
Done.
|
| }); |
| test("throws if the description isn't valid", () { |