MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_expr_bitwise_ops

Function test_expr_bitwise_ops

core/src/parser.rs:3139–3157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

do_expr_ok_testFunction · 0.85
expr_integerFunction · 0.85
lcFunction · 0.85

Tested by

no test coverage detected