aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGavin Howard <gavin@yzena.com>2021-07-11 20:12:03 -0600
committerGavin Howard <gavin@yzena.com>2021-07-11 20:12:03 -0600
commit9b038e3cd9a92aa7b2c30cf078e25f4c30870bf2 (patch)
treea653a25436468242a2ed0ea3b7c35a1d97348adc /tests
parentb74131b4bb4e191c6ba3524f1de48f24e7678b58 (diff)
downloadplatform_external_bc-9b038e3cd9a92aa7b2c30cf078e25f4c30870bf2.tar.gz
platform_external_bc-9b038e3cd9a92aa7b2c30cf078e25f4c30870bf2.tar.bz2
platform_external_bc-9b038e3cd9a92aa7b2c30cf078e25f4c30870bf2.zip
Add a few tests to hit some branches in the lexer
Signed-off-by: Gavin Howard <gavin@yzena.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bc/decimal.txt3
-rw-r--r--tests/bc/decimal_results.txt2
-rw-r--r--tests/dc/decimal.txt5
-rw-r--r--tests/dc/decimal_results.txt5
-rw-r--r--tests/dc/scientific.txt4
-rw-r--r--tests/dc/scientific_results.txt4
6 files changed, 23 insertions, 0 deletions
diff --git a/tests/bc/decimal.txt b/tests/bc/decimal.txt
index a66ef79a..8b0fd276 100644
--- a/tests/bc/decimal.txt
+++ b/tests/bc/decimal.txt
@@ -60,3 +60,6 @@
.00000000011234567890
.000000000011234567890
.0000000000011234567890
+2893729837\
+
+29837.29837048
diff --git a/tests/bc/decimal_results.txt b/tests/bc/decimal_results.txt
index 80e36e63..a54a543d 100644
--- a/tests/bc/decimal_results.txt
+++ b/tests/bc/decimal_results.txt
@@ -72,3 +72,5 @@
.00000000011234567890
.000000000011234567890
.0000000000011234567890
+2893729837
+29837.29837048
diff --git a/tests/dc/decimal.txt b/tests/dc/decimal.txt
index ebbb2dc9..fdc628c8 100644
--- a/tests/dc/decimal.txt
+++ b/tests/dc/decimal.txt
@@ -34,3 +34,8 @@ _356784356.934568495770004586495678300000000pR
74325437345273852773827101738273127312738521733017537073520735207307570358738257390761276072160719802671980267018728630178.7082681027680521760217867841276127681270867827821768173178207830710978017738178678012767377058785378278207385237085237803278203782037237582795870pR
_756752732785273851273728537852738257837283678965738527385272983678372867327835672967385278372637862738627836279863782673862783670.71738178361738718367186378610738617836781603760178367018603760178107735278372832783728367826738627836278378260736270367362073867097307925pR
9812734012837410982345719208345712908357412903587192048571920458712.23957182459817249058172945781pR
+2893.982.28937pRpR
+198273\
+.192837pR
+1892.238907\
+.3982739pRpR
diff --git a/tests/dc/decimal_results.txt b/tests/dc/decimal_results.txt
index 27fa2ad2..ec9124c0 100644
--- a/tests/dc/decimal_results.txt
+++ b/tests/dc/decimal_results.txt
@@ -47,3 +47,8 @@
8372832783728367826738627836278378260736270367362073867097307925
9812734012837410982345719208345712908357412903587192048571920458712.\
23957182459817249058172945781
+.28937
+2893.982
+198273.192837
+.3982739
+1892.238907
diff --git a/tests/dc/scientific.txt b/tests/dc/scientific.txt
index 59a78dbb..240473b0 100644
--- a/tests/dc/scientific.txt
+++ b/tests/dc/scientific.txt
@@ -31,6 +31,10 @@ _.0002983172e5pR
.00022e3pR
_.00022e4pR
.0000328937e8pR
+82938.29873e8.82\
+937pRpR
+2893e2\
+.389pRpR
0o
0pR
1pR
diff --git a/tests/dc/scientific_results.txt b/tests/dc/scientific_results.txt
index 557fcf61..25fb0756 100644
--- a/tests/dc/scientific_results.txt
+++ b/tests/dc/scientific_results.txt
@@ -31,6 +31,10 @@
.22
-2.2
3289.37
+.82937
+8293829873000
+.389
+289300
0
1e0
1.0e1