diff options
author | Gavin Howard <yzena.tech@gmail.com> | 2018-08-08 00:15:50 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-08-08 19:56:35 -0500 |
commit | 151e3f782333acbe349fdaac3ec843e42e95be3f (patch) | |
tree | 25e49c3292fafde0613fbcf601f8ab03da082e62 /tests/files/bc/print.bc | |
parent | 49d02c41fe60684e1f43cab38e4c1d80a607a921 (diff) | |
download | toybox-151e3f782333acbe349fdaac3ec843e42e95be3f.tar.gz |
Add bc (and its tests) to pending
Diffstat (limited to 'tests/files/bc/print.bc')
-rwxr-xr-x | tests/files/bc/print.bc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/files/bc/print.bc b/tests/files/bc/print.bc new file mode 100755 index 00000000..e8423c21 --- /dev/null +++ b/tests/files/bc/print.bc @@ -0,0 +1,21 @@ +#! /usr/bin/bc -q + +for (b = 2; b <= 16; ++b) { + + if (b == 10) continue + + s = b * b + + print "obase = ", b, "\n" + + for (i = 0; i <= s; ++i) { + i + print "0.", i, "\n" + print "1.", i, "\n" + print i, ".", i, "\n" + } + + 2189432174861923048671023498128347619023487610234689172304.192748960128745108927461089237469018723460 +} + +halt |