docs(app-iced): 订正测试注释(1180 上限是 424,不是 435)
r3 复审:`layout/tests.rs` 的注释说「现在必须是 435」,同一函数的断言却是 424。 证据:`grep -n 435 crates/app-iced/src/pages/layout/tests.rs` - 第 229 行(旧):`// 1180 —— M68 就是在这条上翻的车(712px),现在必须是 435` → 改成 **424**; - 剩下两处 435 都是**平均口径上界**的正确引用,不是残留: 第 176 行注释「不是『平均步进 × 72』的算术值 435」、 第 180 行 `assert_eq!(measure_average_bound_px(), 435.0)`。
This commit is contained in:
1 parent
87d5dd8f67
commit
589f51f4fb
1 file changed
+1
-1
@@ -226,7 +226,7 @@ fn line_length_is_capped_at_72_characters() {
|
||||
assert!(column <= measure_cap_px() + f32::EPSILON);
|
||||
}
|
||||
|
||||
// 1180 —— M68 就是在这条上翻的车(712px),现在必须是 435
|
||||
// 1180 —— M68 就是在这条上翻的车(712px),现在必须是 424(= measure_cap_px())
|
||||
let wide = content_column_width(1180.0);
|
||||
assert_eq!(wide, measure_cap_px());
|
||||
assert!(wide < 712.0, "不许回到 M68 的全宽单卡(712px)");
|
||||
|
||||
Reference in new issue
Block a user