summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-12-15 20:37:21 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-12-15 20:37:21 -0800
commita2f6a5744045f75f5c5b991cea7fe0df64e2cba4 (patch)
tree43c8b24ecce823b187f2780a9e89e6ac47e7b629
parentd10133ca992eeb8e26940c25959017a9250c0768 (diff)
downloadtxr-a2f6a5744045f75f5c5b991cea7fe0df64e2cba4.tar.gz
txr-a2f6a5744045f75f5c5b991cea7fe0df64e2cba4.tar.bz2
txr-a2f6a5744045f75f5c5b991cea7fe0df64e2cba4.zip
tests for string range length.
* tests/012/seq.tl: New tests.
-rw-r--r--tests/012/seq.tl12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/012/seq.tl b/tests/012/seq.tl
index c831e6c5..86980e57 100644
--- a/tests/012/seq.tl
+++ b/tests/012/seq.tl
@@ -1624,3 +1624,15 @@
(test
(copy 1..10) #(1 2 3 4 5 6 7 8 9))
+
+(mtest
+ (length "A".."A") 1
+ (length "A".."B") 2
+ (length "B".."A") 2
+ (length "AA".."AA") 1
+ (length "AA".."AB") 2
+ (length "AB".."AA") 2
+ (length "A".."Z") 26
+ (length "Z".."A") 26
+ (length "AAA".."ZZZ") 17576
+ (length "ZZZ".."AAA") 17576)