summaryrefslogtreecommitdiff
path: root/src/ninep
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep')
-rw-r--r--src/ninep/ctl.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index 2cfee904..ec870253 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -1706,7 +1706,7 @@ test "a Restore asks again for the ThemeFile the dump names, as a /ctl write of
var encoded: std.Io.Writer.Allocating = .init(gpa);
defer encoded.deinit();
try std.zon.stringify.serialize(custom, .{}, &encoded.writer);
- try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written(), false));
+ try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written()));
try pardes.dump.dumpState(p);
const restored = try pardes.dump.restore(p, p.dump_out.?, "/tmp/pardes.dump.zon");
defer restored.deinit();
@@ -1741,9 +1741,9 @@ test "a ThemeFile that fails to load changes nothing: the root ctl still names t
var encoded: std.Io.Writer.Allocating = .init(gpa);
defer encoded.deinit();
try std.zon.stringify.serialize(custom, .{}, &encoded.writer);
- try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written(), false));
+ try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written()));
_ = wr(p, root_ctl, "ThemeFile /tmp/pardes-bad-theme.zon\n");
- try testing.expect(!pardes.colors.loadThemeFile(p, p.theme_file_generation, ".{ .name = ", false));
+ try testing.expect(!pardes.colors.loadThemeFile(p, p.theme_file_generation, ".{ .name = "));
try testing.expect(std.mem.indexOf(u8, rd(p, root_ctl, 0, 1 << 16).bytes, "ThemeFile " ++ good ++ "\n") != null);
try testing.expectEqualStrings(good, p.theme_file_path.get());
}
@@ -1760,7 +1760,7 @@ test "after a ThemeFile the root ctl and DumpConfig say ThemeFile and its path,
var encoded: std.Io.Writer.Allocating = .init(gpa);
defer encoded.deinit();
try std.zon.stringify.serialize(custom, .{}, &encoded.writer);
- try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written(), false));
+ try testing.expect(pardes.colors.loadThemeFile(p, p.theme_file_generation, encoded.written()));
const settings = rd(p, root_ctl, 0, 1 << 16).bytes;
try testing.expect(std.mem.indexOf(u8, settings, "ThemeFile " ++ path ++ "\n") != null);
try testing.expect(std.mem.indexOf(u8, settings, "Theme mine") == null);