about summary refs log tree commit diff stats
path: root/horizon
blob: f46e56ecded1fb92417b2b168a7aca6e8880c167 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
run routine f with a keyboard channel containing #\a and a fake screen

check that fake screen contains 'a' at (5, 5)

---

; At its core, an editor is a 2D array of characters and a cursor.

given [
  editor 5 5
]

Cursor should be at (0 0)

now [
  type "abc"
]

Cursor should be at (0 3)
"abc" should be at (0 0)
Trace should contain [
  typed "a"
  typed "b"
  typed "c"
]

---

Extract unit tests for helper out of all existing tests.