aboutsummaryrefslogtreecommitdiff
path: root/testsuite/bc_modulus.bc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-12 21:41:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-12 21:41:40 +0100
commit9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49 (patch)
tree9b1a85084b1e046b0a5b5eb06375334ef1eb2f56 /testsuite/bc_modulus.bc
parentd6ad3666dc51f475a6e76b07f2c59d039f69f2d4 (diff)
downloadbusybox-w32-9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49.tar.gz
busybox-w32-9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49.tar.bz2
busybox-w32-9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49.zip
testsuite: add bc and dc tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/bc_modulus.bc')
-rw-r--r--testsuite/bc_modulus.bc70
1 files changed, 70 insertions, 0 deletions
diff --git a/testsuite/bc_modulus.bc b/testsuite/bc_modulus.bc
new file mode 100644
index 000000000..e2656a6e9
--- /dev/null
+++ b/testsuite/bc_modulus.bc
@@ -0,0 +1,70 @@
11 % 1
22 % 1
316 % 4
415 % 4
517 % 4
62389473 % 5
739240687239 % 1
8346728934 % 23958
93496723859067234 % 298375462837546928347623059375486
10-1 % 1
11-2 % 1
12-47589634875689345 % 37869235
13-1274852934765 % 2387628935486273546
14-6324758963 % 237854962
151 % -1
162 % -1
172 % -2
182 % -3
1916 % 5
2015 % 5
2114 % 5
2289237423 % -237856923854
23123647238946 % -12467
24-1 % -1
25-2 % -1
26-2 % -2
27-2 % -3
28-13 % -7
29-14 % -7
30-15 % -7
31-12784956 % -32746
32-127849612 % -23712347682193
331 % 0.2395672438567234
34scale = 0
351 % 1
362 % 1
3716 % 4
3815 % 4
3917 % 4
402389473 % 5
4139240687239 % 1
42346728934 % 23958
433496723859067234 % 298375462837546928347623059375486
44-1 % 1
45-2 % 1
46-47589634875689345 % 37869235
47-1274852934765 % 2387628935486273546
48-6324758963 % 237854962
491 % -1
502 % -1
512 % -2
522 % -3
5316 % 5
5415 % 5
5514 % 5
5689237423 % -237856923854
57123647238946 % -12467
58-1 % -1
59-2 % -1
60-2 % -2
61-2 % -3
62-13 % -7
63-14 % -7
64-15 % -7
65-12784956 % -32746
66-127849612 % -23712347682193
67-3191280681 % 641165986
68scale = 0; -899510228 % -2448300078.40314
69scale = 0; -7424863 % -207.2609738667
70scale = 0; 3769798918 % 0.6