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

Unified Diff: tests/language/expect_test.dart

Issue 23621022: Update language.status (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months 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 | « tests/language/constructor_initializer_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/expect_test.dart
diff --git a/tests/language/expect_test.dart b/tests/language/expect_test.dart
index ee24d6d6c0953e19f3b6c1b4ee2710a7adeb31b9..6ae5ca2240e2e896795d22fa82559f37f74b7bd4 100644
--- a/tests/language/expect_test.dart
+++ b/tests/language/expect_test.dart
@@ -5,6 +5,11 @@
import "package:expect/expect.dart";
+class C {
+ operator==(other) => true;
+ int get hashCode => 0;
+}
+
class ExpectTest {
static testEquals(a) {
@@ -41,14 +46,14 @@ class ExpectTest {
}
static testIdentical(a) {
- var ab = "${a}B";
+ var ab = new C();
try {
- Expect.identical("AB", ab);
+ Expect.identical(new C(), ab);
kustermann 2013/09/05 11:09:51 I don't understand your changes in this file. * T
Søren Gjesse 2013/09/05 12:23:38 Well spotted! I reverted this, and opened a bug in
} on Exception catch (msg) {
print(msg);
return;
}
- Expect.equals("AB", ab);
+ Expect.equals(new C(), ab);
throw "Expect.identical did not fail";
kustermann 2013/09/05 11:09:51 These last two statements will always result in an
Søren Gjesse 2013/09/05 12:23:38 That was just to keep the same structure in the te
}
« no previous file with comments | « tests/language/constructor_initializer_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698