aboutsummaryrefslogtreecommitdiff
path: root/testsuite/bc_multiply.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_multiply.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_multiply.bc')
-rw-r--r--testsuite/bc_multiply.bc42
1 files changed, 42 insertions, 0 deletions
diff --git a/testsuite/bc_multiply.bc b/testsuite/bc_multiply.bc
new file mode 100644
index 000000000..8d5aa36d5
--- /dev/null
+++ b/testsuite/bc_multiply.bc
@@ -0,0 +1,42 @@
10 * 0
20.000 * 0
31 * 0
40 * 1
50 * 2498752389672835476
6873246913745129084576134 * 0
71 * 472638590273489273456
812374861230476103672835496 * 1
91 * 1
102 * 1
111 * 2
122 * 2
133 * 14
1417 * 8
151892467513846753 * 1872439821374591038746
16328962735862.2973546835638947635 * 1728465791348762356
1738745962374538.387427384672934867234 * 0.1932476528394672837568923754
189878894576289457634856.2738627161689017387608947567654 * 37842939768237596237854203.29874372139852739126739621793162
19-1 * 1
20-1 * 2
2178893457 * -34876238956
22235678324957634 * -0.2349578349672389576
23-12849567821934 * 12738462937681
241274861293467.927843682937462 * -28935678239
252936077239872.12937462836 * -0.012842357682435762
262387692387566.2378569237546 * -272189345628.123875629835876
270.012348629356782835962 * -23487692356
280.4768349567348675934 * -0.23756834576934857638495
290.98748395367485962735486 * -4675839462354867.376834956738456
30-321784627934586 * -235762378596
31-32578623567892356 * -0.32567384579638456
32-35768232346876 * -2348672935602387620.28375682349576237856
33-0.2356728394765234 * -238759624356978
34-0.2345768212346780 * -0.235768124697074385948943532045
35-0.370873860736785306278630 * -7835678398607.7086378076867096270
36-78365713707.7089637863786730 * -738580798679306780
37-73867038956790490258249 * -0.7379862716391723672803679
38-378621971598721837710387 * -98465373878350798.09743896037963078560
3937164201 * 2931559660
40679468076118972457796560530571.46287161642138401685 * 93762.2836
41.000000000000000000000000001 * .0000000000000000000000001
42scale = 0; 237854962 * -26