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

Issue 12210100: If two Maps are compared with an equals() matcher and they have the same length, (Closed)

Created:
7 years, 10 months ago by gram
Modified:
7 years, 10 months ago
Reviewers:
Jennifer Messerly
CC:
reviews_dartlang.org
Visibility:
Public.

Description

If two Maps are compared with an equals() matcher and they have the same length, show the first key missing from 'actual' that is in 'expected'. See https://code.google.com/p/dart/issues/detail?id=6814 Committed: https://code.google.com/p/dart/source/detail?r=18347

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -8 lines) Patch
M pkg/unittest/lib/src/core_matchers.dart View 1 2 1 chunk +23 lines, -8 lines 0 comments Download
M pkg/unittest/test/matchers_test.dart View 1 2 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
gram
7 years, 10 months ago (2013-02-09 01:31:34 UTC) #1
gram
AH, ignore this. I realise that it already shows the map key, so now it ...
7 years, 10 months ago (2013-02-09 01:32:51 UTC) #2
gram
I kept the new test at least, so please check that. That seems to be ...
7 years, 10 months ago (2013-02-09 01:36:39 UTC) #3
Jennifer Messerly
https://codereview.chromium.org/12210100/diff/1/pkg/unittest/lib/src/core_matchers.dart File pkg/unittest/lib/src/core_matchers.dart (right): https://codereview.chromium.org/12210100/diff/1/pkg/unittest/lib/src/core_matchers.dart#newcode144 pkg/unittest/lib/src/core_matchers.dart:144: reason = new StringDescription('different map lengths'); The bug was ...
7 years, 10 months ago (2013-02-09 23:53:06 UTC) #4
Jennifer Messerly
https://codereview.chromium.org/12210100/diff/1/pkg/unittest/lib/src/core_matchers.dart File pkg/unittest/lib/src/core_matchers.dart (right): https://codereview.chromium.org/12210100/diff/1/pkg/unittest/lib/src/core_matchers.dart#newcode144 pkg/unittest/lib/src/core_matchers.dart:144: reason = new StringDescription('different map lengths'); Here's a possible ...
7 years, 10 months ago (2013-02-10 00:01:40 UTC) #5
gram
PTAL https://codereview.chromium.org/12210100/diff/1/pkg/unittest/lib/src/core_matchers.dart File pkg/unittest/lib/src/core_matchers.dart (right): https://codereview.chromium.org/12210100/diff/1/pkg/unittest/lib/src/core_matchers.dart#newcode144 pkg/unittest/lib/src/core_matchers.dart:144: reason = new StringDescription('different map lengths'); On 2013/02/09 ...
7 years, 10 months ago (2013-02-11 20:43:35 UTC) #6
Jennifer Messerly
7 years, 10 months ago (2013-02-11 20:59:01 UTC) #7
lgtm!

Powered by Google App Engine
This is Rietveld 408576698