diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 09:38:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | aecc0e8e8979f9afb5cadb7e509bb0cd9b211d0a (patch) | |
| tree | 89361fad9ce8ebc68e62f09fe74d8a6305fe9281 /examples/live/test | |
| parent | 3373059db38e3b0bbf6105e91180300a4f1c6ead (diff) | |
| download | sketchbook-aecc0e8e8979f9afb5cadb7e509bb0cd9b211d0a.tar.gz sketchbook-aecc0e8e8979f9afb5cadb7e509bb0cd9b211d0a.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'examples/live/test')
| -rw-r--r-- | examples/live/test/live.script | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
