gawk-diffs
[Top][All Lists]

## [SCM] gawk branch, feature/mdim-restart, updated. gawk-4.1.0-4780-gec7a6

 From: Arnold Robbins Subject: [SCM] gawk branch, feature/mdim-restart, updated. gawk-4.1.0-4780-gec7a63b0 Date: Thu, 2 Jun 2022 14:43:17 -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/mdim-restart has been updated
from  f162319580b6a32dfdc6d40880bf329f281f02c5 (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 -----------------------------------------------------------------

Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Thu Jun 2 21:42:55 2022 +0300

And, once again, add the new test files.

diff --git a/test/mdim3.awk b/test/mdim3.awk
new file mode 100644
index 00000000..3cd56b61
--- /dev/null
+++ b/test/mdim3.awk
@@ -0,0 +1,29 @@
+BEGIN {
+   inp[0] = "blah"
+   inp[1] = "blah"
+   inp[2] = ""
+   inp[3] = "Summary Statistics"
+   inp[4] = "temperature,0"
+   inp[5] = "rain,1"
+
+   for (i = 1; i <= 40; i++) {
+      print "i =", i
+      mode = 0
+      nr = 0
+      delete val
+      for (j = 0; j < 6; j++) {
+        x = inp[j]
+        print "\tj =", j
+#       if (i == 27 && j == 3)
+#              stopme()
+        nf = split(x,f,",")
+        print "\tnf =", nf
+        if (++nr > 1) {
+           if (!nf)
+              mode = 1
+           else if (mode == 1)
+              val[f[1]] = f[2]
+        }
+      }
+   }
+}
diff --git a/test/mdim3.ok b/test/mdim3.ok
new file mode 100644
index 00000000..a8f05990
--- /dev/null
+++ b/test/mdim3.ok
@@ -0,0 +1,520 @@
+i = 1
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 2
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 3
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 4
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 5
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 6
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 7
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 8
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 9
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 10
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 11
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 12
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 13
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 14
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 15
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 16
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 17
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 18
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 19
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 20
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 21
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 22
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 23
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 24
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 25
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 26
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 27
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 28
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 29
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 30
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 31
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 32
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 33
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 34
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 35
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 36
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 37
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 38
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 39
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2
+i = 40
+       j = 0
+       nf = 1
+       j = 1
+       nf = 1
+       j = 2
+       nf = 0
+       j = 3
+       nf = 1
+       j = 4
+       nf = 2
+       j = 5
+       nf = 2

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

Summary of changes:
test/mdim3.awk |  29 ++++
test/mdim3.ok  | 520 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 549 insertions(+)
create mode 100644 test/mdim3.awk
create mode 100644 test/mdim3.ok