- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, "");
- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, "()");
- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, "(");
- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, ")");
- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, "+1");
- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, "1+");
- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, "1+*1");
- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, "1+(1*1");
- ret |= EC_TEST_CHECK_PARSE(lex_node, -1, "1+!1!1)");
-
- ret |= ec_node_expr_test_eval(lex_node, node, "1^", 1);
- ret |= ec_node_expr_test_eval(lex_node, node, "2^", 4);
- ret |= ec_node_expr_test_eval(lex_node, node, "!1", 0);
- ret |= ec_node_expr_test_eval(lex_node, node, "!0", 1);
-
- ret |= ec_node_expr_test_eval(lex_node, node, "1+1", 2);
- ret |= ec_node_expr_test_eval(lex_node, node, "1+2+3", 6);
- ret |= ec_node_expr_test_eval(lex_node, node, "1+1*2", 4);
- ret |= ec_node_expr_test_eval(lex_node, node, "2 * 2^", 8);
- ret |= ec_node_expr_test_eval(lex_node, node, "(1 + !0)^ * !0^", 4);
- ret |= ec_node_expr_test_eval(lex_node, node, "(1 + !1) * 3", 3);
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, "");
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, "()");
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, "(");
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, ")");
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, "+1");
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, "1+");
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, "1+*1");
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, "1+(1*1");
+ testres |= EC_TEST_CHECK_PARSE(lex_node, -1, "1+!1!1)");
+
+ testres |= ec_node_expr_test_eval(lex_node, node, "1^", 1);
+ testres |= ec_node_expr_test_eval(lex_node, node, "2^", 4);
+ testres |= ec_node_expr_test_eval(lex_node, node, "!1", 0);
+ testres |= ec_node_expr_test_eval(lex_node, node, "!0", 1);
+
+ testres |= ec_node_expr_test_eval(lex_node, node, "1+1", 2);
+ testres |= ec_node_expr_test_eval(lex_node, node, "1+2+3", 6);
+ testres |= ec_node_expr_test_eval(lex_node, node, "1+1*2", 4);
+ testres |= ec_node_expr_test_eval(lex_node, node, "2 * 2^", 8);
+ testres |= ec_node_expr_test_eval(lex_node, node, "(1 + !0)^ * !0^", 4);
+ testres |= ec_node_expr_test_eval(lex_node, node, "(1 + !1) * 3", 3);