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

Issue 72193002: Clean up version solver tests a bit. (Closed)

Created:
7 years, 1 month ago by Bob Nystrom
Modified:
7 years, 1 month ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Clean up version solver tests a bit. The code for parsing the package descriptions had gotten increasingly hacky. This unhacks it. R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=30264

Patch Set 1 #

Total comments: 4

Patch Set 2 : Revise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -54 lines) Patch
M sdk/lib/_internal/pub/lib/src/package.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/version_solver_test.dart View 1 2 chunks +76 lines, -54 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Bob Nystrom
A little prep work before adding dependency override tests.
7 years, 1 month ago (2013-11-14 00:46:16 UTC) #1
nweiz
A couple suggestions, but lgtm. https://codereview.chromium.org/72193002/diff/1/sdk/lib/_internal/pub/test/version_solver_test.dart File sdk/lib/_internal/pub/test/version_solver_test.dart (right): https://codereview.chromium.org/72193002/diff/1/sdk/lib/_internal/pub/test/version_solver_test.dart#newcode1244 sdk/lib/_internal/pub/test/version_solver_test.dart:1244: assert(match != null); Throw ...
7 years, 1 month ago (2013-11-14 01:16:14 UTC) #2
Bob Nystrom
Committed patchset #2 manually as r30264 (presubmit successful).
7 years, 1 month ago (2013-11-14 01:40:00 UTC) #3
Bob Nystrom
7 years, 1 month ago (2013-11-21 18:19:56 UTC) #4
Message was sent while issue was closed.
Oops, never sent this.

https://codereview.chromium.org/72193002/diff/1/sdk/lib/_internal/pub/test/ve...
File sdk/lib/_internal/pub/test/version_solver_test.dart (right):

https://codereview.chromium.org/72193002/diff/1/sdk/lib/_internal/pub/test/ve...
sdk/lib/_internal/pub/test/version_solver_test.dart:1244: assert(match != null);
On 2013/11/14 01:16:14, nweiz wrote:
> Throw an error message that includes [text]. If someone actually does add a
spec
> with a typo, it'll be really helpful to tell them which spec they did wrong.

Done.

https://codereview.chromium.org/72193002/diff/1/sdk/lib/_internal/pub/test/ve...
sdk/lib/_internal/pub/test/version_solver_test.dart:1252: assert(match[5] ==
null);
On 2013/11/14 01:16:14, nweiz wrote:
> See above.

Done.

Powered by Google App Engine
This is Rietveld 408576698