Lines Matching refs:test
7 static int test(struct parse_ctx *ctx, const char *e, double val2) in test() function
17 int test__expr(struct test *t __maybe_unused, int subtest __maybe_unused) in test__expr()
30 ret = test(&ctx, "1+1", 2); in test__expr()
31 ret |= test(&ctx, "FOO+BAR", 3); in test__expr()
32 ret |= test(&ctx, "(BAR/2)%2", 1); in test__expr()
33 ret |= test(&ctx, "1 - -4", 5); in test__expr()
34 ret |= test(&ctx, "(FOO-1)*2 + (BAR/2)%2 - -4", 5); in test__expr()
35 ret |= test(&ctx, "1-1 | 1", 1); in test__expr()
36 ret |= test(&ctx, "1-1 & 1", 0); in test__expr()
37 ret |= test(&ctx, "min(1,2) + 1", 2); in test__expr()
38 ret |= test(&ctx, "max(1,2) + 1", 3); in test__expr()
39 ret |= test(&ctx, "1+1 if 3*4 else 0", 2); in test__expr()