aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-19 12:38:59 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-19 12:39:33 -0500
commit073bcb868df8eea8504526f11bce9f831de06e67 (patch)
tree3e2dc3e23a78e2cfceabff445a75aaaa1636930a /tests
parent4227bdedde837347ecd83510b976ab13d474b2b9 (diff)
downloadvt100-rust-073bcb868df8eea8504526f11bce9f831de06e67.tar.gz
vt100-rust-073bcb868df8eea8504526f11bce9f831de06e67.zip
more line wrapping bugs
Diffstat (limited to 'tests')
-rw-r--r--tests/data/fixtures/wrap.in1
-rw-r--r--tests/data/fixtures/wrap/23.json3
-rw-r--r--tests/data/fixtures/wrap/30.json18
-rw-r--r--tests/data/fixtures/wrap/30.typescript1
4 files changed, 23 insertions, 0 deletions
diff --git a/tests/data/fixtures/wrap.in b/tests/data/fixtures/wrap.in
index 1c85cb2..491034d 100644
--- a/tests/data/fixtures/wrap.in
+++ b/tests/data/fixtures/wrap.in
@@ -27,3 +27,4 @@ a
\x1b[H\x1b[@
\x1bc\x1b[1;80Haa\x1b[T\x1b[@
\x1bc\na\x1b[1;79Hデ\n
+\x1bc\x1b[1;79Hネa\x1b[1;79Hb
diff --git a/tests/data/fixtures/wrap/23.json b/tests/data/fixtures/wrap/23.json
index 681554c..ef04d51 100644
--- a/tests/data/fixtures/wrap/23.json
+++ b/tests/data/fixtures/wrap/23.json
@@ -10,6 +10,9 @@
"1,0": {
"contents": "d"
},
+ "1,1": {
+ "contents": " "
+ },
"1,2": {
"contents": "a"
}
diff --git a/tests/data/fixtures/wrap/30.json b/tests/data/fixtures/wrap/30.json
new file mode 100644
index 0000000..44351c6
--- /dev/null
+++ b/tests/data/fixtures/wrap/30.json
@@ -0,0 +1,18 @@
+{
+ "contents": " b a",
+ "cells": {
+ "0,78": {
+ "contents": "b"
+ },
+ "0,79": {
+ "contents": " "
+ },
+ "1,0": {
+ "contents": "a"
+ }
+ },
+ "cursor_position": [
+ 0,
+ 79
+ ]
+} \ No newline at end of file
diff --git a/tests/data/fixtures/wrap/30.typescript b/tests/data/fixtures/wrap/30.typescript
new file mode 100644
index 0000000..73ac4d4
--- /dev/null
+++ b/tests/data/fixtures/wrap/30.typescript
@@ -0,0 +1 @@
+cネab \ No newline at end of file