diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-12 21:41:40 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-12 21:41:40 +0100 |
commit | 9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49 (patch) | |
tree | 9b1a85084b1e046b0a5b5eb06375334ef1eb2f56 /testsuite/bc_modulus.bc | |
parent | d6ad3666dc51f475a6e76b07f2c59d039f69f2d4 (diff) | |
download | busybox-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.bc | 70 |
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 @@ | |||
1 | 1 % 1 | ||
2 | 2 % 1 | ||
3 | 16 % 4 | ||
4 | 15 % 4 | ||
5 | 17 % 4 | ||
6 | 2389473 % 5 | ||
7 | 39240687239 % 1 | ||
8 | 346728934 % 23958 | ||
9 | 3496723859067234 % 298375462837546928347623059375486 | ||
10 | -1 % 1 | ||
11 | -2 % 1 | ||
12 | -47589634875689345 % 37869235 | ||
13 | -1274852934765 % 2387628935486273546 | ||
14 | -6324758963 % 237854962 | ||
15 | 1 % -1 | ||
16 | 2 % -1 | ||
17 | 2 % -2 | ||
18 | 2 % -3 | ||
19 | 16 % 5 | ||
20 | 15 % 5 | ||
21 | 14 % 5 | ||
22 | 89237423 % -237856923854 | ||
23 | 123647238946 % -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 | ||
33 | 1 % 0.2395672438567234 | ||
34 | scale = 0 | ||
35 | 1 % 1 | ||
36 | 2 % 1 | ||
37 | 16 % 4 | ||
38 | 15 % 4 | ||
39 | 17 % 4 | ||
40 | 2389473 % 5 | ||
41 | 39240687239 % 1 | ||
42 | 346728934 % 23958 | ||
43 | 3496723859067234 % 298375462837546928347623059375486 | ||
44 | -1 % 1 | ||
45 | -2 % 1 | ||
46 | -47589634875689345 % 37869235 | ||
47 | -1274852934765 % 2387628935486273546 | ||
48 | -6324758963 % 237854962 | ||
49 | 1 % -1 | ||
50 | 2 % -1 | ||
51 | 2 % -2 | ||
52 | 2 % -3 | ||
53 | 16 % 5 | ||
54 | 15 % 5 | ||
55 | 14 % 5 | ||
56 | 89237423 % -237856923854 | ||
57 | 123647238946 % -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 | ||
68 | scale = 0; -899510228 % -2448300078.40314 | ||
69 | scale = 0; -7424863 % -207.2609738667 | ||
70 | scale = 0; 3769798918 % 0.6 | ||