gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2901-g347bec


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2901-g347bec1
Date: Thu, 28 Dec 2017 13:50:38 -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, master has been updated
       via  347bec15cbff2ab20d541e8888fe5802681f2a50 (commit)
      from  6ff9f60e9aac2334c12b19a9df829c83901172a2 (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=347bec15cbff2ab20d541e8888fe5802681f2a50

commit 347bec15cbff2ab20d541e8888fe5802681f2a50
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 1e1cf7e..26fd2d4 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+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 1438e08..0fa74b2 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -747,6 +747,8 @@ EXTRA_DIST = \
        numindex.awk \
        numindex.in \
        numindex.ok \
+       numstr1.awk \
+       numstr1.ok \
        numsubstr.awk \
        numsubstr.in \
        numsubstr.ok \
@@ -1224,7 +1226,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 5a190d7..493bf9f 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1005,6 +1005,8 @@ EXTRA_DIST = \
        numindex.awk \
        numindex.in \
        numindex.ok \
+       numstr1.awk \
+       numstr1.ok \
        numsubstr.awk \
        numsubstr.in \
        numsubstr.ok \
@@ -1481,7 +1483,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 \
@@ -3494,6 +3496,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]