blob: 6f33ffe185ed9bbf92b8788b1285d7e70222acc6 [file] [log] [blame]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* @assertion static void identical(var expected, var actual, [String reason = null])
* Checks whether the expected and actual values are identical.
* @description Checks that equality operator is not used.
* @author varlax
*/
import "../../../Utils/expect.dart";
class A {
operator ==(var b) {
return true;
}
}
main() {
try {
Expect.identical(new A(), new A());
throw "ExpectException expected";
} on ExpectException catch(ok) {
}
}