diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-07-03 23:55:17 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-07-03 23:55:17 -0700 |
commit | fe9a0303c60fa1ff636ac866f1cc73f380503d5b (patch) | |
tree | 34e285e50664ad79c8017f3180f5aa5a6f9e15e7 /tests/001 | |
parent | eb081ac7627ce7b4e093d4d84ebfa99790008d59 (diff) | |
download | txr-fe9a0303c60fa1ff636ac866f1cc73f380503d5b.tar.gz txr-fe9a0303c60fa1ff636ac866f1cc73f380503d5b.tar.bz2 txr-fe9a0303c60fa1ff636ac866f1cc73f380503d5b.zip |
tests: add @{var1 var2} match test.
* tests/001/query-5.txr: New file.
* tests/001/query-5.expected: New file.
* Makefile (tst/tests/001/query-5.ok): Pass -B to txr for this
new test.
* tests/017/glob-carray.expected: Updated, because the glob
test globs over the contents of tests/001 directory.
* tests/017/glob-zarray.expected: Likewise.
Diffstat (limited to 'tests/001')
-rw-r--r-- | tests/001/query-5.expected | 7 | ||||
-rw-r--r-- | tests/001/query-5.txr | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/001/query-5.expected b/tests/001/query-5.expected new file mode 100644 index 00000000..dddf7240 --- /dev/null +++ b/tests/001/query-5.expected @@ -0,0 +1,7 @@ +cmd-rx="#/sshd.*/" +cmd[0]="sshd: kaz [priv] " +cmd[1]="sshd: kaz@pts/2 " +cmd[2]="sshd: kaz [priv] " +cmd[3]="sshd: kaz@pts/4 " +cmd[4]="sshd: kaz [priv] " +cmd[5]="sshd: kaz@pts/1 " diff --git a/tests/001/query-5.txr b/tests/001/query-5.txr new file mode 100644 index 00000000..7c1ca45d --- /dev/null +++ b/tests/001/query-5.txr @@ -0,0 +1,4 @@ +@(bind cmd-rx #/sshd.*/) +@(collect) +@nil @nil @nil @nil @nil @nil @nil @{cmd cmd-rx} +@(end) |