blob: 08a154625fb7d3864b46ad4295b26f3c6ddb09ab [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) {
}
}