gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, feature/csv-revamp, updated. gawk-4.1.0-5194-g7af9952


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/csv-revamp, updated. gawk-4.1.0-5194-g7af99528
Date: Thu, 23 Mar 2023 14:41:39 -0400 (EDT)

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, feature/csv-revamp has been updated
       via  7af995289b05c5e5843facc4ba3a21672c2028ad (commit)
      from  c7566d72409784c83759d638de5301e053aa4134 (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=7af995289b05c5e5843facc4ba3a21672c2028ad

commit 7af995289b05c5e5843facc4ba3a21672c2028ad
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Thu Mar 23 20:41:26 2023 +0200

    Add test files.

diff --git a/test/csv3.awk b/test/csv3.awk
new file mode 100644
index 00000000..ac4e182f
--- /dev/null
+++ b/test/csv3.awk
@@ -0,0 +1,6 @@
+{
+       print "Record:", NR
+       for (i = 1; i <= NF; i++) {
+               printf("\t$%d = <%s>\n", i, $i)
+       }
+}
diff --git a/test/csv3.in b/test/csv3.in
new file mode 100644
index 00000000..d0f45223
--- /dev/null
+++ b/test/csv3.in
@@ -0,0 +1,13 @@
+Forename,Lastname,Address,State,Zipcode
+John,Doe,"120 jefferson st.
+Riverside", NJ, 08075
+Jack,McGinnis,"220 hobo Av.
+Philadelphia", PA,09119
+"John ""Da Man""",Repici,"120 Jefferson St.
+Riverside", NJ,08075
+Stephen,Tyler,"7452 Terrace ""At the Plaza"" road
+SomeTown",SD, 91234
+,Blankman,"
+SomeTown", SD, 00298
+"Joan ""the bone"", Anne",Jet,"9th, at Terrace plc
+Desert City",CO,00123
diff --git a/test/csv3.ok b/test/csv3.ok
new file mode 100644
index 00000000..eadb878a
--- /dev/null
+++ b/test/csv3.ok
@@ -0,0 +1,48 @@
+Record: 1
+       $1 = <Forename>
+       $2 = <Lastname>
+       $3 = <Address>
+       $4 = <State>
+       $5 = <Zipcode>
+Record: 2
+       $1 = <John>
+       $2 = <Doe>
+       $3 = <120 jefferson st.
+Riverside>
+       $4 = < NJ>
+       $5 = < 08075>
+Record: 3
+       $1 = <Jack>
+       $2 = <McGinnis>
+       $3 = <220 hobo Av.
+Philadelphia>
+       $4 = < PA>
+       $5 = <09119>
+Record: 4
+       $1 = <John "Da Man">
+       $2 = <Repici>
+       $3 = <120 Jefferson St.
+Riverside>
+       $4 = < NJ>
+       $5 = <08075>
+Record: 5
+       $1 = <Stephen>
+       $2 = <Tyler>
+       $3 = <7452 Terrace "At the Plaza" road
+SomeTown>
+       $4 = <SD>
+       $5 = < 91234>
+Record: 6
+       $1 = <>
+       $2 = <Blankman>
+       $3 = <
+SomeTown>
+       $4 = < SD>
+       $5 = < 00298>
+Record: 7
+       $1 = <Joan "the bone", Anne>
+       $2 = <Jet>
+       $3 = <9th, at Terrace plc
+Desert City>
+       $4 = <CO>
+       $5 = <00123>

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

Summary of changes:
 test/csv3.awk |  6 ++++++
 test/csv3.in  | 13 +++++++++++++
 test/csv3.ok  | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 test/csv3.awk
 create mode 100644 test/csv3.in
 create mode 100644 test/csv3.ok


hooks/post-receive
-- 
gawk



reply via email to

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