Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

test: include the trailing space in image-chip right()

Cursor Agent61e4ce28ec0c
diff --git a/src/readline_image.zig b/src/readline_image.zig
index e51bdd95..c9688913 100644
--- a/src/readline_image.zig
+++ b/src/readline_image.zig
@@ -143,8 +143,8 @@ test "left/right treat an image chip as one atom (#702)" {
try std.testing.expectEqual(@as(usize, 3), left(text, 13).?); // on the trailing space
try std.testing.expectEqual(@as(usize, 3), left(text, 12).?); // on ]
try std.testing.expect(left(text, 3) == null);
- try std.testing.expectEqual(@as(usize, 13), right(text, 3).?);
- try std.testing.expect(right(text, 13) == null);
+ try std.testing.expectEqual(@as(usize, 14), right(text, 3).?);
+ try std.testing.expect(right(text, 14) == null);
}
test "afterEdit drops an abandoned chip and remaps the rest (#702)" {