diff --git a/nemu/tests/expr_test.c b/nemu/tests/expr_test.c index 9347155..c8fe995 100644 --- a/nemu/tests/expr_test.c +++ b/nemu/tests/expr_test.c @@ -144,7 +144,7 @@ struct { uint32_t reference; } exprs[] = { {"-1", 0xFFFFFFFFU}, - {"--1", 0x1}, + {"0--1", 0x1}, }; START_TEST(test_expr_negative_operand) { yy_scan_string(exprs[_i].expr);