fix: 测试改用变量操作数规避常量折叠

This commit is contained in:
2026-10-13 03:07:53 +00:00
parent 5db0224c4e
commit bd5ea29203
4 changed files with 31 additions and 29 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ fn bench_help() {
#[test]
fn eval_trace_flag_pc_lines() {
let output = Command::new(env!("CARGO_BIN_EXE_oxide"))
.args(["eval", "--trace", "1 + 2"])
.args(["eval", "--trace", "var a = 1; var b = 2; a + b"])
.output()
.expect("failed to run oxide eval --trace");