Index: utils/tests/pub/version_solver_test.dart |
diff --git a/utils/tests/pub/version_solver_test.dart b/utils/tests/pub/version_solver_test.dart |
index e87ffb0ffd882b75b2f5331e42be92e01a3f5db3..cfe5c08b0374e371611635d1a0da842d40bec1e1 100644 |
--- a/utils/tests/pub/version_solver_test.dart |
+++ b/utils/tests/pub/version_solver_test.dart |
@@ -270,7 +270,14 @@ testResolve(description, packages, [result, error]) { |
var future = resolveVersions(sources, root); |
if (result != null) { |
- expect(future, completion(equals(result))); |
+ expect(future, completion(predicate((actualResult) { |
+ for (var id in actualResult) { |
+ if (!result.containsKey(id.description)) return false; |
+ if (id.version != result.remove(id.description)) return false; |
+ } |
+ if (!result.isEmpty()) return false; |
+ return true; |
Bob Nystrom
2012/07/11 22:51:02
return result.isEmpty();
nweiz
2012/07/11 22:55:40
Done.
|
+ }, description: 'packages to match $result'))); |
} else if (error == noVersion) { |
expect(future, throwsA(new isInstanceOf<NoVersionException>())); |
} else if (error == disjointConstraint) { |