diff --git a/src/protocol/tests/parser_binding.rs b/src/protocol/tests/parser_binding.rs index 6fcab16a2354fa7b50c2021042976446f72051ff..4aa276e9371a3b41772ecf8e7feb2b99b8c4b935 100644 --- a/src/protocol/tests/parser_binding.rs +++ b/src/protocol/tests/parser_binding.rs @@ -109,9 +109,11 @@ fn test_boolean_ops_on_binding() { return 0; } ").error(|e| { e - .assert_num(1) - .assert_occurs_at(0, "let") - .assert_msg_has(0, "expected a 'bool'"); + .assert_num(2) + .assert_occurs_at(0, "let a") + .assert_msg_has(0, "only the logical-and operator") + .assert_occurs_at(1, "||") + .assert_msg_has(1, "disallowed operation"); }); Tester::new_single_source_expect_err("apply || after binding", " @@ -123,9 +125,11 @@ fn test_boolean_ops_on_binding() { return 0; } ").error(|e| { e - .assert_num(1) - .assert_occurs_at(0, "let") - .assert_msg_has(0, "expected a 'bool'"); + .assert_num(2) + .assert_occurs_at(0, "let b") + .assert_msg_has(0, "only the logical-and operator") + .assert_occurs_at(1, "||") + .assert_msg_has(1, "disallowed operation"); }); Tester::new_single_source_expect_err("apply || before and after binding", " @@ -137,7 +141,10 @@ fn test_boolean_ops_on_binding() { return 0; } ").error(|e| { e - .assert_num(1) - .assert_msg_has(0, "expected a 'bool'"); + .assert_num(2) + .assert_occurs_at(0, "let a") + .assert_msg_has(0, "only the logical-and operator") + .assert_occurs_at(1, "|| (let a") + .assert_msg_has(1, "disallowed operation"); }); } \ No newline at end of file