aboutsummaryrefslogtreecommitdiff
path: root/tests/files/bc/parse.bc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/bc/parse.bc')
-rwxr-xr-xtests/files/bc/parse.bc16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/files/bc/parse.bc b/tests/files/bc/parse.bc
new file mode 100755
index 00000000..8cc7472f
--- /dev/null
+++ b/tests/files/bc/parse.bc
@@ -0,0 +1,16 @@
+#! /usr/bin/bc -q
+
+for (b = 2; b <= 16; ++b) {
+ if (b == 10) continue
+ obase = 10
+ print "ibase = A; ibase = ", b, "\n"
+ obase = b
+ for (i = 0; i <= 65536; ++i) {
+ i
+ print "0.", i, "\n"
+ print "1.", i, "\n"
+ print i, ".", i, "\n"
+ }
+}
+
+halt