()
| 3106 | |
| 3107 | #[test] |
| 3108 | fn test_expr_logical_ops_not() { |
| 3109 | use Expr::*; |
| 3110 | do_expr_ok_test( |
| 3111 | "NOT TRUE", |
| 3112 | Not(Box::from(UnaryOpSpan { expr: expr_boolean(true, 1, 11), pos: lc(1, 7) })), |
| 3113 | ); |
| 3114 | do_expr_ok_test( |
| 3115 | "NOT 6", |
| 3116 | Not(Box::from(UnaryOpSpan { expr: expr_integer(6, 1, 11), pos: lc(1, 7) })), |
| 3117 | ); |
| 3118 | do_expr_ok_test( |
| 3119 | "NOT NOT TRUE", |
| 3120 | Not(Box::from(UnaryOpSpan { |
| 3121 | expr: Not(Box::from(UnaryOpSpan { |
| 3122 | expr: expr_boolean(true, 1, 15), |
| 3123 | pos: lc(1, 11), |
| 3124 | })), |
| 3125 | pos: lc(1, 7), |
| 3126 | })), |
| 3127 | ); |
| 3128 | do_expr_ok_test( |
| 3129 | "1 - NOT 4", |
| 3130 | Subtract(Box::from(BinaryOpSpan { |
| 3131 | lhs: expr_integer(1, 1, 7), |
| 3132 | rhs: Not(Box::from(UnaryOpSpan { expr: expr_integer(4, 1, 15), pos: lc(1, 11) })), |
| 3133 | pos: lc(1, 9), |
| 3134 | })), |
| 3135 | ); |
| 3136 | } |
| 3137 | |
| 3138 | #[test] |
| 3139 | fn test_expr_bitwise_ops() { |
nothing calls this directly
no test coverage detected