summaryrefslogtreecommitdiff
path: root/core/Band.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Band.zig')
-rw-r--r--core/Band.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Band.zig b/core/Band.zig
index 31205d87..024b6be4 100644
--- a/core/Band.zig
+++ b/core/Band.zig
@@ -555,7 +555,8 @@ test "SPC Down unrolls the level into a band under the tag's text, the body push
for (s.cells[@as(usize, layer.viewport.y) * s.cols ..][layer.viewport.x..][0..layer.viewport.w]) |cell| try grid.appendSlice(frame.allocator(), cell.grapheme());
try std.testing.expect(std.mem.indexOf(u8, grid.items, "▶ b buffer…") != null);
// The head names the level and says how to roll it up.
- try std.testing.expect(std.mem.endsWith(u8, try tagline.tagText(p, frame.allocator(), pane), "␣ SPC ↑ roll up · ? field · esc"));
+ const head = try tagline.tagText(p, frame.allocator(), pane);
+ try std.testing.expect(std.mem.startsWith(u8, head, "␣ SPC ") and std.mem.endsWith(u8, head, " ↑ roll up · ? field · esc"));
// Down moves the cursor; Up back to the first row, then rolls up.
p.update(.{ .key = .{ .cp = Key.down } });
try std.testing.expectEqual(@as(u8, 'c'), p.view().tag_state.hi);