Lines Matching +full:foo +full:- +full:bar
1 // SPDX-License-Identifier: GPL-2.0
28 expr__add_id_val(&ctx, strdup("FOO"), 1); in test__expr()
29 expr__add_id_val(&ctx, strdup("BAR"), 2); in test__expr()
32 ret |= test(&ctx, "FOO+BAR", 3); in test__expr()
33 ret |= test(&ctx, "(BAR/2)%2", 1); in test__expr()
34 ret |= test(&ctx, "1 - -4", 5); in test__expr()
35 ret |= test(&ctx, "(FOO-1)*2 + (BAR/2)%2 - -4", 5); in test__expr()
36 ret |= test(&ctx, "1-1 | 1", 1); in test__expr()
37 ret |= test(&ctx, "1-1 & 1", 0); in test__expr()
55 p = "FOO/0"; in test__expr()
57 TEST_ASSERT_VAL("division by zero", ret == -1); in test__expr()
59 p = "BAR/"; in test__expr()
61 TEST_ASSERT_VAL("missing operand", ret == -1); in test__expr()
65 expr__find_other("FOO + BAR + BAZ + BOZO", "FOO", in test__expr()
68 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "BAR", in test__expr()