blob: f3b35f0d260d6060661b478fb6aad3616496d06d [file] [log] [blame]
// Copyright (c) 2012, 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.
import "package:expect/expect.dart";
var myIdentical = identical;
main() {
// Bigint (2^76).
// TODO(rnystrom): Figure out how to change this to work on the web.
Expect.isTrue(myIdentical(75557863725914323419136, 75557863725914323419136));
Expect.isFalse(myIdentical(75557863725914323419136, 75557863725914323419137));
// Different types.
Expect.isFalse(myIdentical(42, 42.0));
// NaN handling.
Expect.isTrue(myIdentical(double.nan, double.nan));
}