(t *testing.T)
| 2714 | } |
| 2715 | |
| 2716 | func TestExpr_crash_with_zero(t *testing.T) { |
| 2717 | code := "if\x00" |
| 2718 | _, err := expr.Compile(code) |
| 2719 | require.Error(t, err) |
| 2720 | } |
| 2721 | |
| 2722 | func TestExpr_nil_op_str(t *testing.T) { |
| 2723 | // Let's test operators, which do `.(string)` in VM, also check for nil. |