From aecc0e8e8979f9afb5cadb7e509bb0cd9b211d0a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 09:38:16 -0300 Subject: examples/live: the README's editor lines, and a press the larger name moved The README says the grammar also sizes the name each line defines (its query's `(definition name: (name))`, 1.2 times the rest), that the code is one sketchbook paragraph whose ranges, carets and marks sit where sk.text.places lays their bytes out, the press found by the same places, that the canvas is the window's pixels and the picture at most 720 rows scaled to it. test/live.script presses where 220 began when every character was 10 pixels, now the space before it: nothing drags (with the press at 190 it does, and the script fails). zig build test: 92 of 92 steps. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- examples/live/test/live.script | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/live/test/live.script') diff --git a/examples/live/test/live.script b/examples/live/test/live.script index 0d4b0c2..f39275d 100644 --- a/examples/live/test/live.script +++ b/examples/live/test/live.script @@ -85,6 +85,12 @@ expect probe.len 0 # 10 pixels a character, the name `out` a step larger at 12, its line 26 # high) pressed and dragged 40 pixels right is 230, then 12 left of where # it was pressed is 217; the program follows; the drag is one step to undo. +# Pressed 6 pixels left, where 220 began when every character was 10 +# pixels, it is the space before it: nothing drags. +down 181 27 +move 221 27 +up 221 27 +expect out.code[1].a 1130102784 down 187 27 move 207 27 move 227 27 -- cgit v1.3