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_decimal.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_decimal.bc')
-rw-r--r-- | testsuite/bc_decimal.bc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testsuite/bc_decimal.bc b/testsuite/bc_decimal.bc new file mode 100644 index 000000000..9b1788c67 --- /dev/null +++ b/testsuite/bc_decimal.bc | |||
@@ -0,0 +1,36 @@ | |||
1 | 0 | ||
2 | 0.0 | ||
3 | .00000 | ||
4 | 000000000000000000000000.00000000000000000000000 | ||
5 | 000000000000000000000000000135482346782356 | ||
6 | 000000000000000000000000002 | ||
7 | 1 | ||
8 | 11 | ||
9 | 123 | ||
10 | 7505 | ||
11 | 1023468723275435238491972521917846 | ||
12 | 4343472432431705867392073517038270398027352709027389273920739037937960379637893607893607893670530278200795207952702873892786172916728961783907893607418973587857386079679267926737520730925372983782793652793 | ||
13 | -1 | ||
14 | -203 | ||
15 | -57 | ||
16 | -18586 | ||
17 | -31378682943772818461924738352952347258 | ||
18 | -823945628745673589495067238723986520375698237620834674509627345273096287563846592384526349872634895763257893467523987578690283762897568459072348758071071087813501875908127359018715023841710239872301387278 | ||
19 | .123521346523546 | ||
20 | 0.1245923756273856 | ||
21 | -.1024678456387 | ||
22 | -0.8735863475634587 | ||
23 | 4.0 | ||
24 | -6.0 | ||
25 | 234237468293576.000000000000000000000000000000 | ||
26 | 23987623568943567.00000000000000000005677834650000000000000 | ||
27 | 23856934568940675.000000000000000435676782300000000000000456784 | ||
28 | 77567648698496.000000000000000000587674750000000000458563800000000000000 | ||
29 | 2348672354968723.2374823546000000000003256987394502346892435623870000000034578 | ||
30 | -2354768.000000000000000000000000000000000000 | ||
31 | -96739874567.000000000347683456 | ||
32 | -3764568345.000000000004573845000000347683460 | ||
33 | -356784356.934568495770004586495678300000000 | ||
34 | 74325437345273852773827101738273127312738521733017537073520735207307570358738257390761276072160719802671980267018728630178.7082681027680521760217867841276127681270867827821768173178207830710978017738178678012767377058785378278207385237085237803278203782037237582795870 | ||
35 | -756752732785273851273728537852738257837283678965738527385272983678372867327835672967385278372637862738627836279863782673862783670.71738178361738718367186378610738617836781603760178367018603760178107735278372832783728367826738627836278378260736270367362073867097307925 | ||
36 | 9812734012837410982345719208345712908357412903587192048571920458712.23957182459817249058172945781 | ||