diff options
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/dc.tests | 10 |
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)" \ | |||
44 | optional FEATURE_DC_BIG | 44 | optional FEATURE_DC_BIG |
45 | # All tests below depend on FEATURE_DC_BIG | 45 | # All tests below depend on FEATURE_DC_BIG |
46 | 46 | ||
47 | testing "dc: x should execute strings" \ | ||
48 | "dc -e'[40 2 +] x f'" \ | ||
49 | "42\n" \ | ||
50 | "" "" | ||
51 | |||
52 | testing "dc: x should not execute or pop non-strings" \ | ||
53 | "dc -e'42 x f'" \ | ||
54 | "42\n" \ | ||
55 | "" "" | ||
56 | |||
47 | testing "dc read" \ | 57 | testing "dc read" \ |
48 | "dc -finput" \ | 58 | "dc -finput" \ |
49 | "2\n9\n1\n" \ | 59 | "2\n9\n1\n" \ |