dc: fit returning of string
[oweals/busybox.git] / testsuite / dc.tests
index 87b1e71c3084cded0bc6bd022679578d4c72360a..1708a483503e891b05e5e18fec9f0a3056420f50 100755 (executable)
@@ -46,6 +46,11 @@ testing "dc read" \
        "2\n9\n1\n" \
        "1?2\nf" "9\n"
 
+testing "dc read string" \
+       "dc -finput" \
+       "2\nstr\n1\n" \
+       "1?2\nf" "[str]\n"
+
 optional FEATURE_DC_BIG
 # All tests below depend on FEATURE_DC_BIG