feat(k-ui): first slice: App trait + run loop, builders (column/row/text/button), flex layout, theme tokens (Whimsy Dark), tiny-skia + fontdue render (Noto Sans Latin subset), keyboard focus ring; tally demo; manifest memory key (pm spawns with it)

This commit is contained in:
2026-10-28 03:20:41 +01:00
parent c256f4ecf3
commit fe73b89525
27 changed files with 1428 additions and 6 deletions

View File

@@ -239,3 +239,13 @@ fn every_capability_name_round_trips_and_fits_the_set() {
all
);
}
#[test]
fn memory_is_in_kib_or_mib_within_bounds() {
use crate::Memory;
assert_eq!(Memory::parse("3 MiB").map(|m| m.pages()), Some(768));
assert_eq!(Memory::parse("512 KiB").map(|m| m.pages()), Some(128));
for bad in ["3MiB", "3 GiB", "17 MiB", "32 KiB", "6 KiB", "-1 MiB", "x MiB"] {
assert_eq!(Memory::parse(bad), None, "{bad}");
}
}