gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-287


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2875-g4f8254b
Date: Wed, 10 Jan 2018 15:12:47 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-4.2-stable has been updated
       via  4f8254b5dd78162f7737801ec5fb380817ba548d (commit)
      from  11ef8fd2637da3ad21f2bc803432cadf3451b67a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=4f8254b5dd78162f7737801ec5fb380817ba548d

commit 4f8254b5dd78162f7737801ec5fb380817ba548d
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Dec 28 20:50:24 2017 +0200

    New test, numstr1.

diff --git a/test/ChangeLog b/test/ChangeLog
index 5799b03..7ad4801 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -12,6 +12,11 @@
        * Makefile.am (mpfrrndeval): New test. 
        * mpfrrndeval.awk, mpfrrndeval.ok: New files.
 
+2017-12-28         Arnold D. Robbins     <address@hidden>
+
+       * Makefile.am (EXTRA_DIST): Add numstr1 files.
+       * numstr1.awk, numstr1.ok: New files.
+
 2017-11-14         Andrew J. Schorr     <address@hidden>
 
        * Makefile.am (EXTRA_DIST): Add new tests setrec0 and setrec1.
diff --git a/test/Makefile.am b/test/Makefile.am
index 3c9f2b0..f49cbdc 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -749,6 +749,8 @@ EXTRA_DIST = \
        numindex.awk \
        numindex.in \
        numindex.ok \
+       numstr1.awk \
+       numstr1.ok \
        numsubstr.awk \
        numsubstr.in \
        numsubstr.ok \
@@ -1228,7 +1230,7 @@ BASIC_TESTS = \
        manglprm math membug1 memleak messages minusstr mmap8k mtchi18n \
        nasty nasty2 negexp negrange nested nfldstr nfloop nfneg nfset nlfldsep 
\
        nlinstr nlstrina noeffect nofile nofmtch noloop1 noloop2 nonl noparms \
-       nors nulinsrc nulrsend numindex numsubstr \
+       nors nulinsrc nulrsend numindex 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 482040a..47ca037 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1007,6 +1007,8 @@ EXTRA_DIST = \
        numindex.awk \
        numindex.in \
        numindex.ok \
+       numstr1.awk \
+       numstr1.ok \
        numsubstr.awk \
        numsubstr.in \
        numsubstr.ok \
@@ -1485,7 +1487,7 @@ BASIC_TESTS = \
        manglprm math membug1 memleak messages minusstr mmap8k mtchi18n \
        nasty nasty2 negexp negrange nested nfldstr nfloop nfneg nfset nlfldsep 
\
        nlinstr nlstrina noeffect nofile nofmtch noloop1 noloop2 nonl noparms \
-       nors nulinsrc nulrsend numindex numsubstr \
+       nors nulinsrc nulrsend numindex numstr1 numsubstr \
        octsub ofmt ofmta ofmtbig ofmtfidl ofmts ofmtstrnum ofs1 onlynl \
        opasnidx opasnslf \
        paramasfunc1 paramasfunc2 paramdup paramres paramtyp paramuninitglobal \
@@ -3511,6 +3513,11 @@ numindex:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  < 
"$(srcdir)"/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+numstr1:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 numsubstr:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  < 
"$(srcdir)"/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index f64b864..6a68510 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -620,6 +620,11 @@ numindex:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  < 
"$(srcdir)"/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+numstr1:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 numsubstr:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  < 
"$(srcdir)"/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
diff --git a/test/numstr1.awk b/test/numstr1.awk
new file mode 100644
index 0000000..e58404f
--- /dev/null
+++ b/test/numstr1.awk
@@ -0,0 +1,7 @@
+BEGIN {
+       split("1.234", f)
+       OFMT = "%.1f"
+       print f[1]
+       x = f[1]+0
+       print f[1]
+}
diff --git a/test/numstr1.ok b/test/numstr1.ok
new file mode 100644
index 0000000..434a231
--- /dev/null
+++ b/test/numstr1.ok
@@ -0,0 +1,2 @@
+1.234
+1.234

-----------------------------------------------------------------------

Summary of changes:
 test/ChangeLog                       | 5 +++++
 test/Makefile.am                     | 4 +++-
 test/Makefile.in                     | 9 ++++++++-
 test/Maketests                       | 5 +++++
 test/{ofmtstrnum.awk => numstr1.awk} | 4 ++--
 test/numstr1.ok                      | 2 ++
 6 files changed, 25 insertions(+), 4 deletions(-)
 copy test/{ofmtstrnum.awk => numstr1.awk} (58%)
 create mode 100644 test/numstr1.ok


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]