Index: lib/unittest/expectation.dart |
diff --git a/lib/unittest/expectation.dart b/lib/unittest/expectation.dart |
index a0add00c0bf449aa476cb7541291c70a7d4c8b88..b81160d2c2c27c803e19e9f6107ba67461e3623c 100644 |
--- a/lib/unittest/expectation.dart |
+++ b/lib/unittest/expectation.dart |
@@ -38,6 +38,13 @@ class Expectation { |
Expect.approxEquals(expected, _value, tolerance: tolerance, reason: reason); |
} |
+ /** |
+ * Asserts that two objects are identical (using [:===:]). |
+ */ |
+ void identical(expected) { |
Bob Nystrom
2012/04/13 15:59:46
How about "same" or "sameAs"?
Anton Muhin
2012/04/13 16:04:14
I'd vote for same, is it ok w/ you?
Anton Muhin
2012/04/13 16:54:27
Done. Thanks a lot, landing.
On 2012/04/13 16:04
|
+ Expect.identical(_value, expected); |
+ } |
+ |
/** Asserts that the value is [null]. */ |
void isNull() { |
Expect.equals(null, _value); |