()
| 3056 | |
| 3057 | #[test] |
| 3058 | fn test_expr_rel_ops() { |
| 3059 | use Expr::*; |
| 3060 | let span1 = Box::from(BinaryOpSpan { |
| 3061 | lhs: expr_integer(1, 1, 7), |
| 3062 | rhs: expr_integer(2, 1, 11), |
| 3063 | pos: lc(1, 9), |
| 3064 | }); |
| 3065 | let span2 = Box::from(BinaryOpSpan { |
| 3066 | lhs: expr_integer(1, 1, 7), |
| 3067 | rhs: expr_integer(2, 1, 12), |
| 3068 | pos: lc(1, 9), |
| 3069 | }); |
| 3070 | do_expr_ok_test("1 = 2", Equal(span1.clone())); |
| 3071 | do_expr_ok_test("1 <> 2", NotEqual(span2.clone())); |
| 3072 | do_expr_ok_test("1 < 2", Less(span1.clone())); |
| 3073 | do_expr_ok_test("1 <= 2", LessEqual(span2.clone())); |
| 3074 | do_expr_ok_test("1 > 2", Greater(span1)); |
| 3075 | do_expr_ok_test("1 >= 2", GreaterEqual(span2)); |
| 3076 | } |
| 3077 | |
| 3078 | #[test] |
| 3079 | fn test_expr_logical_ops() { |
nothing calls this directly
no test coverage detected