diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-29 08:12:47 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-29 08:12:47 -0700 |
commit | 23e9be3e10cf1159390268974bb84551df485bd5 (patch) | |
tree | f79705d9854a96efdfb7a7fb4b3636d5cfff4b41 /test.lua | |
parent | 524157fb8afa3d246e97008080dca8fae0e3049b (diff) | |
download | lines.love-23e9be3e10cf1159390268974bb84551df485bd5.tar.gz |
selecting text and deleting selections
I've written a few tests for delete_selection, but the way different operations initialize the selection seems fairly standard and not worth testing so far.
Diffstat (limited to 'test.lua')
-rw-r--r-- | test.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test.lua b/test.lua index 3493de4..b2b6f3c 100644 --- a/test.lua +++ b/test.lua @@ -11,6 +11,14 @@ function check(x, msg) end end +function check_nil(x, msg) + if x == nil then + io.write('.') + else + error(msg..'; should be nil but got "'..x..'"') + end +end + function check_eq(x, expected, msg) if eq(x, expected) then io.write('.') |