blob: 19b691a447666322a8696e46686c6b8517f1a6c5 [file] [log] [blame]
// Copyright (c) 2016, 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
/// Description Operator Associativity Precedence
/// Equality == None 7
/// @description Test that '==' equality operator has precedence (7).
/// Compare with Logical AND '&&' operator (precedence 6). Test that '==' has
/// priority higher than '&&'
/// @author sgrekhov@unipro.ru
import "../../../Utils/expect.dart";
main() {
Expect.equals((1 == 1) && (2 == 2), 1 == 1 && 2 == 2);
Expect.equals((1 == 1) && (2 == 3), 1 == 1 && 2 == 3);
Expect.equals((false == false) && true, false == false && true);
Expect.equals((true == false) && true, true == false && true);
}