aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/Makefile.am4
-rw-r--r--test/Makefile.in9
-rw-r--r--test/Maketests5
-rw-r--r--test/numrange.awk5
-rw-r--r--test/numrange.ok2
6 files changed, 28 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index a2575200..0b41abba 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2018-06-22 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * Makefile.am (EXTRA_DIST): Add files for numrange.
+ * numrange.awk, numrange.ok: New files.
+
2018-05-24 Arnold D. Robbins <arnold@skeeve.com>
* noeffect.awk, noeffect.ok: Updated.
diff --git a/test/Makefile.am b/test/Makefile.am
index af0d47d9..e4cca53d 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -761,6 +761,8 @@ EXTRA_DIST = \
numindex.awk \
numindex.in \
numindex.ok \
+ numrange.awk \
+ numrange.ok \
numstr1.awk \
numstr1.ok \
numsubstr.awk \
@@ -1248,7 +1250,7 @@ BASIC_TESTS = \
manglprm math membug1 memleak messages minusstr mmap8k \
nasty nasty2 negexp negrange nested nfldstr nfloop nfneg nfset nlfldsep \
nlinstr nlstrina noeffect nofile nofmtch noloop1 noloop2 nonl noparms \
- nors nulinsrc nulrsend numindex numstr1 numsubstr \
+ nors nulinsrc nulrsend numindex numrange numstr1 numsubstr \
octsub ofmt ofmta ofmtbig ofmtfidl ofmts ofmtstrnum ofs1 onlynl \
opasnidx opasnslf \
paramasfunc1 paramasfunc2 paramdup paramres paramtyp paramuninitglobal \
diff --git a/test/Makefile.in b/test/Makefile.in
index edf4d646..b987b1c2 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1019,6 +1019,8 @@ EXTRA_DIST = \
numindex.awk \
numindex.in \
numindex.ok \
+ numrange.awk \
+ numrange.ok \
numstr1.awk \
numstr1.ok \
numsubstr.awk \
@@ -1506,7 +1508,7 @@ BASIC_TESTS = \
manglprm math membug1 memleak messages minusstr mmap8k \
nasty nasty2 negexp negrange nested nfldstr nfloop nfneg nfset nlfldsep \
nlinstr nlstrina noeffect nofile nofmtch noloop1 noloop2 nonl noparms \
- nors nulinsrc nulrsend numindex numstr1 numsubstr \
+ nors nulinsrc nulrsend numindex numrange numstr1 numsubstr \
octsub ofmt ofmta ofmtbig ofmtfidl ofmts ofmtstrnum ofs1 onlynl \
opasnidx opasnslf \
paramasfunc1 paramasfunc2 paramdup paramres paramtyp paramuninitglobal \
@@ -3300,6 +3302,11 @@ numindex:
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+numrange:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
numstr1:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index 1759ee59..5e5fa5ee 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -658,6 +658,11 @@ numindex:
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+numrange:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
numstr1:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
diff --git a/test/numrange.awk b/test/numrange.awk
new file mode 100644
index 00000000..3ad2cab5
--- /dev/null
+++ b/test/numrange.awk
@@ -0,0 +1,5 @@
+BEGIN {
+ n = split("-1.2e+931 1.2e+931", a)
+ for (i=1; i<=n; ++i)
+ print a[i], +a[i]
+}
diff --git a/test/numrange.ok b/test/numrange.ok
new file mode 100644
index 00000000..006da13a
--- /dev/null
+++ b/test/numrange.ok
@@ -0,0 +1,2 @@
+-1.2e+931 -inf
+1.2e+931 inf