diff options
Diffstat (limited to 'test/consumer/lib.zig')
| -rw-r--r-- | test/consumer/lib.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/consumer/lib.zig b/test/consumer/lib.zig index ea0d56fd..2832bdf1 100644 --- a/test/consumer/lib.zig +++ b/test/consumer/lib.zig @@ -88,7 +88,7 @@ test "a C and a Zig source are coloured, outlined and walked as pardes has them, try std.testing.expectEqual(null, pardes.parse("main.rs", "fn main() {}")); const orchard = pardes.theme("Orchard").?; - try std.testing.expectEqual(orchard, &pardes.themes[0]); + try std.testing.expectEqual(orchard, &pardes.themes[pardes.default_theme]); try std.testing.expectEqual([3]u8{ 0x0d, 0x14, 0x10 }, pardes.page(orchard)); try std.testing.expectEqual([3]u8{ 0xe5, 0xee, 0xe5 }, pardes.ink(orchard)); try std.testing.expectEqual([3]u8{ 0xc9, 0xa7, 0xed }, pardes.synInk(orchard, .keyword).?); @@ -97,7 +97,7 @@ test "a C and a Zig source are coloured, outlined and walked as pardes has them, try std.testing.expectEqual([3]u8{ 0xb9, 0xf4, 0x80 }, pardes.synInk(orchard, .comment).?); try std.testing.expectEqual(null, pardes.synInk(orchard, .none)); // `dark` has no page of its own, and an imported palette is in the ring - try std.testing.expectEqual(pardes.theme("dark").?.tag_bg, pardes.page(pardes.theme("dark").?)); + try std.testing.expectEqual(pardes.theme("dark").?.tag, pardes.page(pardes.theme("dark").?)); try std.testing.expect(pardes.theme("gruvbox") != null); try std.testing.expectEqual(null, pardes.theme("no such theme")); } |
