mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
fix: 测试改用变量操作数规避常量折叠
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user