Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Unified Diff: sdk/lib/_internal/pub/test/version_solver_test.dart

Issue 112473002: Don't crash if a failed dependency is in the root package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/version_solver_test.dart
diff --git a/sdk/lib/_internal/pub/test/version_solver_test.dart b/sdk/lib/_internal/pub/test/version_solver_test.dart
index f77d22cdb197d3f6b83b7506cdb401da358d7759..420048063915bd3ed6910a1c74c8e7a19015d024 100644
--- a/sdk/lib/_internal/pub/test/version_solver_test.dart
+++ b/sdk/lib/_internal/pub/test/version_solver_test.dart
@@ -402,6 +402,16 @@ unsolvable() {
'a': '1.0.0'
}
}, error: couldNotSolve, maxTries: 4);
+
+ // This is a regression test for #15550.
+ testResolve('no version that matches while backtracking', {
+ 'myapp 0.0.0': {
+ 'a': 'any',
+ 'b': '>1.0.0'
+ },
+ 'a 1.0.0': {},
+ 'b 1.0.0': {}
+ }, error: noVersion(['myapp']), maxTries: 1);
}
badSource() {
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698