[git commit] dc: add two tests

Denys Vlasenko vda.linux at googlemail.com
Tue Dec 25 19:50:41 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=8fac1c77401478855fd0ac1a7fa64c371bd735cb
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 testsuite/dc.tests | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/testsuite/dc.tests b/testsuite/dc.tests
index cb2dcbc23..2756608f7 100755
--- 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


More information about the busybox-cvs mailing list