aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/dc.tests10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/dc.tests b/testsuite/dc.tests
index 8c3af4156..f74e3f0f5 100755
--- a/testsuite/dc.tests
+++ b/testsuite/dc.tests
@@ -44,6 +44,16 @@ testing "dc complex without spaces (multiple args)" \
44optional FEATURE_DC_BIG 44optional FEATURE_DC_BIG
45# All tests below depend on FEATURE_DC_BIG 45# All tests below depend on FEATURE_DC_BIG
46 46
47testing "dc: x should execute strings" \
48 "dc -e'[40 2 +] x f'" \
49 "42\n" \
50 "" ""
51
52testing "dc: x should not execute or pop non-strings" \
53 "dc -e'42 x f'" \
54 "42\n" \
55 "" ""
56
47testing "dc read" \ 57testing "dc read" \
48 "dc -finput" \ 58 "dc -finput" \
49 "2\n9\n1\n" \ 59 "2\n9\n1\n" \