summaryrefslogtreecommitdiff
path: root/test/output.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/output.zig')
-rw-r--r--test/output.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/output.zig b/test/output.zig
index 8eb389c8..530db77c 100644
--- a/test/output.zig
+++ b/test/output.zig
@@ -219,9 +219,11 @@ test "references fill the asking text's query pane: sorted under their files, th
try std.testing.expectEqual(@as(?usize, 2), source.places.current);
try std.testing.expectEqual(@as(i32, 3), source.body.cur_row);
try std.testing.expectEqual(@as(usize, 6), results.query.?.total);
- // Ctrl-n on line 1, Enter: the keyboard on that ref in the text
+ // A list answered, not a query typed: the keyboard on its current row in
+ // normal mode; n, Enter: the keyboard on that ref in the text
try std.testing.expectEqual(qid, p.active);
- p.update(.{ .key = .{ .cp = 'n', .ctrl = true } });
+ try std.testing.expect(results.body.mode == .normal and results.body.cur_row > 0);
+ p.update(.{ .key = .{ .cp = 'n' } });
try std.testing.expectEqual(@as(?usize, 3), source.places.current);
p.update(.{ .key = .{ .cp = Key.enter } });
try std.testing.expectEqual(@as(usize, 0), p.active);