blob: 1e2f858cbb694c216beacfc318f34878f4525b51 [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);
}