From d03ba13c0f2f18d069961b56679d6d555a817228 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Mon, 2 Nov 2026 10:11:55 +0800 Subject: [PATCH] =?UTF-8?q?test(presenter):=20=E4=BF=AE=E6=AD=A3=20tile=5F?= =?UTF-8?q?viewport=20=E5=8D=95=E6=B5=8B=E7=9A=84=E6=9C=9F=E6=9C=9B?= =?UTF-8?q?=E5=80=BC=EF=BC=88760/128=20=E9=87=8F=E5=8C=96=E5=88=B0=20640?= =?UTF-8?q?=20=E8=80=8C=E9=9D=9E=20768=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 迁移后首次跑 test 时这条自测断言写错:函数行为与原 ui_bind 的实现逐字一致, 错的是期望值。修完 `cargo test -p unlucky-presenter` = 122 passed。 --- crates/presenter/src/theme.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/presenter/src/theme.rs b/crates/presenter/src/theme.rs index 42d39f2..08c798c 100644 --- a/crates/presenter/src/theme.rs +++ b/crates/presenter/src/theme.rs @@ -142,7 +142,7 @@ mod tests { let (width, height) = tile_viewport(BgFill::Tile, (1180, 760)); assert_eq!(width % TILE_REGENERATE_STEP, 0); assert_eq!(height % TILE_REGENERATE_STEP, 0); - assert_eq!((width, height), (1152, 768)); + assert_eq!((width, height), (1152, 640)); } #[test]