Index: client/testing/unittest/shared.dart |
diff --git a/client/testing/unittest/shared.dart b/client/testing/unittest/shared.dart |
index c6faa4aec568a3a12b4015a75b5c607077e22458..4f633785614714142337438112251665d409ab61 100644 |
--- a/client/testing/unittest/shared.dart |
+++ b/client/testing/unittest/shared.dart |
@@ -263,7 +263,11 @@ class Expectation { |
/** Asserts that the value is equivalent to [expected]. */ |
void equals(expected) { |
- Expect.equals(expected, _value); |
+ if (_value is String && expected is String) { |
+ Expect.stringEquals(expected, _value); |
+ } else { |
+ Expect.equals(expected, _value); |
+ } |
} |
/** |