From 5d9e75efd82fb1ad77d22e8dabcad68ec47122fb Mon Sep 17 00:00:00 2001 From: AskaEth Date: Mon, 2 Nov 2026 12:34:08 +0800 Subject: [PATCH] =?UTF-8?q?test(iced/feedback):=20=E7=8E=AF=E5=BD=A2?= =?UTF-8?q?=E6=97=8B=E8=BD=AC=E5=91=A8=E6=9C=9F=E6=96=AD=E8=A8=80=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E5=AE=9E=E6=B5=8B=E6=95=B0=E5=80=BC=EF=BC=88=E8=B7=A8?= =?UTF-8?q?=E5=91=A8=E6=9C=9F=E8=B7=B3=E5=8F=98=20/=20=E6=AF=8F=E5=91=A8?= =?UTF-8?q?=E6=9C=9F=E5=9C=88=E6=95=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 给复审用的一行 `--nocapture` 输出:`[rotation] turns(0.9999)=… 跳变=… 圈(…°)· 每周期 4 圈 = 1440.0°`, 代码本身不变。 --- crates/app-iced/src/components/feedback/tests/progress.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/app-iced/src/components/feedback/tests/progress.rs b/crates/app-iced/src/components/feedback/tests/progress.rs index 84b9622..58a66fa 100644 --- a/crates/app-iced/src/components/feedback/tests/progress.rs +++ b/crates/app-iced/src/components/feedback/tests/progress.rs @@ -195,6 +195,13 @@ fn circular_indeterminate_rotation_is_four_turns_and_continuous() { jump <= 4.0 / 60.0, "跨周期旋转跳变 {jump} 圈(应 ≤ 4/60;修之前是 0.75 圈 = 270°)" ); + // 给报告用的一行实测数值(`--nocapture` 可见):跨周期跳变 + 每周期圈数 + eprintln!( + "[rotation] turns(0.9999)={before:.6} turns(0.0)={after:.6} 跳变={jump:.6} 圈({:.2}°)· 每周期 {:.4} 圈 = {:.1}°", + jump * 360.0, + end - start, + (end - start) * 360.0 + ); // 旋转必须单调(相位 0 → 1 逐帧不回退,按圈算) // 只扫 [0, 1) 的相位:phase == 1.0 就是下一周期的 0,回绕是**正常的**(mod 1 等价)。