diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-12-20 07:42:29 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-12-20 07:42:29 -0800 |
commit | 6d51949c4820f8eeebd6aacfb443c11b2465f6ab (patch) | |
tree | a583ab0ea91bfeb825ccb647950b943316f2ecfd /tests/012 | |
parent | c1c205100d246a39c9b92a5d1b2296a59783d7d4 (diff) | |
download | txr-6d51949c4820f8eeebd6aacfb443c11b2465f6ab.tar.gz txr-6d51949c4820f8eeebd6aacfb443c11b2465f6ab.tar.bz2 txr-6d51949c4820f8eeebd6aacfb443c11b2465f6ab.zip |
less: bug, vectors not supported.
* lib.c (less_tab_init): Add missing initialization for VEC,
with a priority above CONS: all vectors are greater than
conses. The BUF priority is bumped to 7.
* test/012/less.tl: New file.
Diffstat (limited to 'tests/012')
-rw-r--r-- | tests/012/less.tl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/012/less.tl b/tests/012/less.tl new file mode 100644 index 00000000..11748c7f --- /dev/null +++ b/tests/012/less.tl @@ -0,0 +1,21 @@ +(load "../common") + +(mtest + (less #() #(a)) t + (greater #() #(a)) nil + (less #(0) #(1)) t + (greater #(0) #(1)) nil + (less #(1) #(0)) nil + (greater #(1) #(0)) t + (less #(0) #(0 0)) t + (less #(1) #(0 0)) nil + (less #(0 0) #(0 1)) t + (less #(0 0) #(0 0)) nil + (less #(0 0) #(0 0 0)) t) + +(mtest + (less '() #()) t + (less '(0) #(0)) t + (less "a" #(#\a)) t + (less #() #b'') t + (less #(0) #b'00') t) |