projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2e62e3
)
dc: add two tests
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 25 Dec 2018 19:50:41 +0000
(20:50 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 25 Dec 2018 19:50:41 +0000
(20:50 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
testsuite/dc.tests
patch
|
blob
|
history
diff --git
a/testsuite/dc.tests
b/testsuite/dc.tests
index cb2dcbc232e6ef197fd76e29b2ada5224816593e..2756608f738b151c9fca9771b52857bd6d4c5921 100755
(executable)
--- a/
testsuite/dc.tests
+++ b/
testsuite/dc.tests
@@
-56,6
+56,16
@@
testing "dc '>aeb' (conditional execute string with else)" \
"2\n9\n" \
"" "[1p]sa [2p]sb 2 1>aeb\n9p"
+testing "dc space can be a register" \
+ "dc" \
+ "2\n9\n" \
+ "" "[2p]s \n[3p]\nl x\n9p"
+
+testing "dc newline can be a register" \
+ "dc" \
+ "2\n9\n" \
+ "" "[2p]s\n[3p]l\nx\n9p"
+
for f in dc_*.dc; do
r="`basename "$f" .dc`_results.txt"
test -f "$r" || continue