()
| 3137 | |
| 3138 | #[test] |
| 3139 | fn test_expr_bitwise_ops() { |
| 3140 | use Expr::*; |
| 3141 | do_expr_ok_test( |
| 3142 | "1 << 2", |
| 3143 | ShiftLeft(Box::from(BinaryOpSpan { |
| 3144 | lhs: expr_integer(1, 1, 7), |
| 3145 | rhs: expr_integer(2, 1, 12), |
| 3146 | pos: lc(1, 9), |
| 3147 | })), |
| 3148 | ); |
| 3149 | do_expr_ok_test( |
| 3150 | "1 >> 2", |
| 3151 | ShiftRight(Box::from(BinaryOpSpan { |
| 3152 | lhs: expr_integer(1, 1, 7), |
| 3153 | rhs: expr_integer(2, 1, 12), |
| 3154 | pos: lc(1, 9), |
| 3155 | })), |
| 3156 | ); |
| 3157 | } |
| 3158 | |
| 3159 | #[test] |
| 3160 | fn test_expr_op_priorities() { |
nothing calls this directly
no test coverage detected