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:
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user