test(presenter): 修正 tile_viewport 单测的期望值(760/128 量化到 640 而非 768)

迁移后首次跑 test 时这条自测断言写错:函数行为与原 ui_bind 的实现逐字一致,
错的是期望值。修完 `cargo test -p unlucky-presenter` = 122 passed。
This commit is contained in:
AskaEth committed 2026-11-02 10:11:55 +08:00
1 parent f159529936
commit d03ba13c0f
1 file changed
+1 -1
+1 -1
View File
@@ -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]