blob: 5cdb53eb6e75330f88f9c5781afdc961bf966e84 [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 notEquals(var unexpected, var actual, [String reason = null])
* Checks whether the unexpected and actual values are not equal (using [:!=:]).
* @description Checks that no exception is thrown when the arguments are not
* equal, regardless of reason (the last argument). Null, numeric and Object
* values are tested.
* @author rodionov
*/
import "../../../Utils/expect.dart";
main() {
Expect.notEquals(0, null);
Expect.notEquals(0, null, "");
Expect.notEquals(0, null, "not empty");
Expect.notEquals(null, 0);
Expect.notEquals(null, 0, "");
Expect.notEquals(null, 0, "not empty");
Expect.notEquals(false, new Object());
Expect.notEquals(new Object(), true, "");
Expect.notEquals(1, true, "not empty");
Expect.notEquals(null, false);
Expect.notEquals(true, false);
}