Files
breeze/tests/theme_catalog_link_behavior.zi
T
waoziandClaude Opus 5.5 dc67b1bfbe Port Inbe screens, storage, and platform hosts to Ziran
Replace the remaining .kry and C application sources with Ziran modules,
move vendored dependencies to their current pointers, and add Ziran tests for
the ported hosts and policies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 15:40:52 -03:00

25 lines
942 B
Ziran

#import, file "../src/app/theme_catalog.zi";
#program_export
Answer :: () -> s32 {
if ThemeCount != 13 || ThemeDefaultId != 9 ||
ThemeScopeFor(8, false) != "ink_light" ||
ThemeScopeFor(9, true) != "default_dark" { return 1 }
light := ThemeCatalogLoad(0, false)
if !light.complete || light.background != cast(u32)0xE2EEFCFF ||
light.circle != cast(u32)0x7EB7E6FF { return 2 }
dark := ThemeCatalogLoad(0, true)
if !dark.complete || dark.background != cast(u32)0x182838FF ||
dark.link != cast(u32)0x60A0D0FF { return 3 }
fallback := ThemeCatalogLoad(99, false)
if !fallback.complete || fallback.background != cast(u32)0xC0C0C0FF {
return 4
}
for id: 0..12 {
if !ThemeCatalogLoad(cast(s32)id, false).complete ||
!ThemeCatalogLoad(cast(s32)id, true).complete { return 6 }
}
if ThemeCatalogParse("", 0, false).complete { return 5 }
return 42
}