aboutsummaryrefslogtreecommitdiff
path: root/bugs-fixed
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2021-01-06 19:16:10 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-01-06 19:16:10 +0000
commit9f8a9cd5c8278a4a9744a49104366ccd11998e74 (patch)
treea687cc9f4a26bcbd6b4613ac3bc013c8ceccf389 /bugs-fixed
parent921aa98410c535ae1d121fed594bcb3d2be50c0f (diff)
parenta451bd9a443f5b0a0792ecb14443a66ad9f46670 (diff)
downloadone-true-awk-9f8a9cd5c8278a4a9744a49104366ccd11998e74.tar.gz
Upgrade one-true-awk to 7d1848cfa6b7b3bb9a7c851339626982198a57bc am: a451bd9a44
Original change: https://android-review.googlesource.com/c/platform/external/one-true-awk/+/1541457 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I51c671d9b786d444043ba4bb8ea555e894b1d62d
Diffstat (limited to 'bugs-fixed')
-rw-r--r--bugs-fixed/inf-nan-torture.awk4
-rw-r--r--bugs-fixed/inf-nan-torture.in1
-rw-r--r--bugs-fixed/inf-nan-torture.ok16
3 files changed, 21 insertions, 0 deletions
diff --git a/bugs-fixed/inf-nan-torture.awk b/bugs-fixed/inf-nan-torture.awk
new file mode 100644
index 0000000..8d145f2
--- /dev/null
+++ b/bugs-fixed/inf-nan-torture.awk
@@ -0,0 +1,4 @@
+{
+ for (i = 1; i <= NF; i++)
+ print i, $i, $i + 0
+}
diff --git a/bugs-fixed/inf-nan-torture.in b/bugs-fixed/inf-nan-torture.in
new file mode 100644
index 0000000..45dfdc8
--- /dev/null
+++ b/bugs-fixed/inf-nan-torture.in
@@ -0,0 +1 @@
+-inf -inform inform -nan -nancy nancy -123 0 123 +123 nancy +nancy +nan inform +inform +inf
diff --git a/bugs-fixed/inf-nan-torture.ok b/bugs-fixed/inf-nan-torture.ok
new file mode 100644
index 0000000..40d3194
--- /dev/null
+++ b/bugs-fixed/inf-nan-torture.ok
@@ -0,0 +1,16 @@
+1 -inf -inf
+2 -inform 0
+3 inform 0
+4 -nan -nan
+5 -nancy 0
+6 nancy 0
+7 -123 -123
+8 0 0
+9 123 123
+10 +123 123
+11 nancy 0
+12 +nancy 0
+13 +nan +nan
+14 inform 0
+15 +inform 0
+16 +inf +inf