diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-17 10:43:19 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-17 10:43:19 -0700 |
commit | 972d095787d6107141004a66f8e5c86b89f446c6 (patch) | |
tree | aa552db14da3a8fabf0f265181667011656a2afa /tests/common.tl | |
parent | fd22fbc29fc0ee1a726880fa3bab64e187433854 (diff) | |
download | txr-972d095787d6107141004a66f8e5c86b89f446c6.tar.gz txr-972d095787d6107141004a66f8e5c86b89f446c6.tar.bz2 txr-972d095787d6107141004a66f8e5c86b89f446c6.zip |
Adding tests for split-str.
* Makefile (TXR_DBG_OPTS): Disable for tst/tests/015.
* tests/common.tl (mtest): New macro.
* tests/015/split.tl: New file.
Diffstat (limited to 'tests/common.tl')
-rw-r--r-- | tests/common.tl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/common.tl b/tests/common.tl index ea2be1d5..c0dda285 100644 --- a/tests/common.tl +++ b/tests/common.tl @@ -20,6 +20,9 @@ (defmacro stest (expr expected) ^(vtest ,^(tostring ,expr) ,expected)) +(defmacro mtest (. pairs) + ^(progn ,*(mapcar (op cons 'test) (tuples 2 pairs)))) + (defun osname () (with-stream (u (open-command "(uname -o || uname) 2> /dev/null")) (get-line u))) |