From 7cf3020bdeb6aca779c4f3d136ca5c6ccdaf9f89 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Mon, 12 Oct 2026 13:56:07 +0000 Subject: [PATCH] =?UTF-8?q?style:=20=E8=87=AA=E5=8A=A8=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/oxide_emit/tests/fold_tests.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/crates/oxide_emit/tests/fold_tests.rs b/crates/oxide_emit/tests/fold_tests.rs index 35a7cd92..fde965b8 100644 --- a/crates/oxide_emit/tests/fold_tests.rs +++ b/crates/oxide_emit/tests/fold_tests.rs @@ -260,18 +260,11 @@ fn fold_negative_zero_sign() { let neg_zero_bits = (-0.0f64).to_bits(); for (src, op) in cases { let ir = emit_ir(src); - assert_eq!( - count_op(&ir.insts, *op), - 0, - "{src:?} 应折叠,目标操作码 {op:?} 计数应为 0" - ); + assert_eq!(count_op(&ir.insts, *op), 0, "{src:?} 应折叠,目标操作码 {op:?} 计数应为 0"); let has_neg_zero = ir .constants .iter() .any(|c| matches!(c, Constant::Number(d) if d.to_bits() == neg_zero_bits)); - assert!( - has_neg_zero, - "{src:?} 常量池应含折值 Number(-0.0)(符号位置位)" - ); + assert!(has_neg_zero, "{src:?} 常量池应含折值 Number(-0.0)(符号位置位)"); } }