aboutsummaryrefslogtreecommitdiff
path: root/testsuite/dc.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-06 18:46:42 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-06 18:46:42 +0100
commita1331371748fe23ffaec0720f5c5f4f661c37789 (patch)
tree55462e528d52c97b91744c969034318569c04810 /testsuite/dc.tests
parent6d0be10aae1fb92879269e4397ae4e7ab037a628 (diff)
downloadbusybox-a1331371748fe23ffaec0720f5c5f4f661c37789.tar.gz
dc: fix testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/dc.tests')
-rwxr-xr-xtestsuite/dc.tests24
1 files changed, 6 insertions, 18 deletions
diff --git a/testsuite/dc.tests b/testsuite/dc.tests
index a5da5372d..d7a332b9c 100755
--- a/testsuite/dc.tests
+++ b/testsuite/dc.tests
@@ -12,45 +12,33 @@ testing "dc basic syntax (stdin, multiple args)" \
"" "10 20+p"
testing "dc basic syntax (argv, single arg)" \
- "dc '10 20+p'" \
+ "dc -e'10 20+p'" \
"30\n" \
"" ""
testing "dc basic syntax (argv, multiple args)" \
- "dc 10 20+p" \
+ "dc -e10 -e20+p" \
"30\n" \
"" ""
testing "dc complex with spaces (single arg)" \
- "dc '8 8 * 2 2 + / p'" \
+ "dc -e'8 8 * 2 2 + / p'" \
"16\n" \
"" ""
testing "dc complex without spaces (single arg)" \
- "dc '8 8*2 2+/p'" \
+ "dc -e'8 8*2 2+/p'" \
"16\n" \
"" ""
testing "dc complex with spaces (multiple args)" \
- "dc 8 8 \* 2 2 + / p" \
+ "dc -e8 -e8 -e\* -e2 -e2 -e+ -e/ -ep" \
"16\n" \
"" ""
testing "dc complex without spaces (multiple args)" \
- "dc 8 8\*2 2+/p" \
+ "dc -e8 -e8\*2 -e2+/p" \
"16\n" \
"" ""
exit $FAILCOUNT
-
-# we do not support arguments
-testing "dc -e <exprs>" \
- "dc -e '10 2+f'" \
- "12\n" \
- "" ""
-
-testing "dc -f <exprs-from-given-file>" \
- "dc -f input" \
- "12\n" \
- "10 2+f" ""
-