summaryrefslogtreecommitdiff
path: root/regress/usr.bin/colrm
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-01-10 22:20:47 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-01-10 22:20:47 +0000
commitbb2928dd6d4182f524f88dd87d98db9cef3ba9a0 (patch)
tree244eeb8583a1fb776c8ddadce7a4e4c961ab9bb1 /regress/usr.bin/colrm
parent30e582aaafd99e0b86fa3cc439938a12a5ff89f0 (diff)
tests for double backspace after double-width characters
Diffstat (limited to 'regress/usr.bin/colrm')
-rw-r--r--regress/usr.bin/colrm/colrm.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/regress/usr.bin/colrm/colrm.sh b/regress/usr.bin/colrm/colrm.sh
index 38172154650..789fd9a689e 100644
--- a/regress/usr.bin/colrm/colrm.sh
+++ b/regress/usr.bin/colrm/colrm.sh
@@ -88,9 +88,17 @@ test_colrm "3 3" "ax\0314\0200\bbx\0314\0200\bc" \
test_colrm "2 3" "a\0354\0277\0277\bbcde" "ade" "a\0277\bbcde"
test_colrm "2 2" "a\0354\0277\0277\bbcde" "acde" "a\0277\0277\bbcde"
test_colrm "3 3" "a\0354\0277\0277\bbcde" "abde" "a\0354\0277\bbcde"
-test_colrm "4 4" "a\0354\0277\0277b\0354\0277\0277c" \
- "a\0354\0277\0277\0354\0277\0277c" \
- "a\0354\0277b\0354\0277\0277c"
+test_colrm "4 4" \
+ "a\0354\0277\0277\b\0354\0277\0277b\0354\0277\0277\b\0354\0277\0277c" \
+ "a\0354\0277\0277\b\0354\0277\0277\0354\0277\0277\b\0354\0277\0277c" \
+ "a\0354\0277\0277\0277b\0354\0277\0277\b\0354\0277\0277c"
+test_colrm "2 3" "a\0354\0277\0277\b\bbcde" "ade" "a\0277\bcde"
+test_colrm "2 2" "a\0354\0277\0277\b\bbcde" "acde" "a\0277\0277\b\bbcde"
+test_colrm "3 3" "a\0354\0277\0277\b\bbcde" "abde" "a\0354\0277\bcde"
+test_colrm "4 4" \
+ "a\0354\0277\0277\b\b\0354\0277\0277b\0354\0277\0277\b\b\0354\0277\0277c" \
+ "a\0354\0277\0277\b\b\0354\0277\0277\0354\0277\0277\b\b\0354\0277\0277c" \
+ "a\0354\0277\b\0354\0277b\0354\0277\0277\b\b\0354\0277\0277c"
test_colrm "" "\bx" "\bx"
test_colrm "1" "\bx" "\b"