summaryrefslogtreecommitdiff
path: root/test/behaviour
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour')
-rw-r--r--test/behaviour/settings.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/behaviour/settings.zig b/test/behaviour/settings.zig
index 5ad4b7eb..3a9d42df 100644
--- a/test/behaviour/settings.zig
+++ b/test/behaviour/settings.zig
@@ -246,7 +246,9 @@ test "settings: every on/off setting the root ctl reads flips when its word is w
if (!on) try std.testing.expect(!std.mem.endsWith(u8, after, " off"));
flipped += 1;
}
- try std.testing.expect(flipped > 20);
+ // A floor, so a ctl that lists none fails: a bare session's on/off
+ // words, Colors to PagerColor, are ten.
+ try std.testing.expect(flipped >= 10);
for ([_][]const u8{ "Colors off", "Wrap off", "Tagbottom on", "Debug on" }) |want|
try std.testing.expectEqualStrings(want, try setting(&s, want[0..std.mem.indexOfScalar(u8, want, ' ').?]));
try s.write("/ctl", "Theme acme\n");