aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-04-14 15:04:42 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-04-14 15:04:42 +0300
commitc187863b95bed5f750b08df898fdfb611a4bdb54 (patch)
tree70d91aa03affa044b550637fcae6abfd127bc265 /test
parent82ef375e5236341b6550c1c365ec87bd23c049bf (diff)
parent54b3ab3109d5aa01595920e06ca25a815ad525a0 (diff)
downloadegawk-c187863b95bed5f750b08df898fdfb611a4bdb54.tar.gz
egawk-c187863b95bed5f750b08df898fdfb611a4bdb54.tar.bz2
egawk-c187863b95bed5f750b08df898fdfb611a4bdb54.zip
Merge branch 'master' into feature/regex-type
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/indirectbuiltin.awk6
-rw-r--r--test/indirectbuiltin.ok1
3 files changed, 12 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 4d397134..285c2802 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-14 Arnold D. Robbins <arnold@skeeve.com>
+
+ * indirectbuiltin.awk: Add another test (gensub 3 args).
+ * indirectbuiltin.ok: Update good results.
+
2015-04-13 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (negtime): New test.
diff --git a/test/indirectbuiltin.awk b/test/indirectbuiltin.awk
index 4d5291d2..c9e75217 100644
--- a/test/indirectbuiltin.awk
+++ b/test/indirectbuiltin.awk
@@ -98,6 +98,12 @@ BEGIN {
i1 = @fun("f", "q", "g", "ff11bb")
print_result("string", fun, b1, i1)
+ fun = "gensub"
+ $0 = "ff11bb"
+ b1 = gensub("f", "q", "g")
+ i1 = @fun("f", "q", "g")
+ print_result("string", fun " (3 args)", b1, i1)
+
fun = "gsub"
$0 = "ff11bb"
b1 = gsub("f", "q")
diff --git a/test/indirectbuiltin.ok b/test/indirectbuiltin.ok
index 312bbd76..08c87610 100644
--- a/test/indirectbuiltin.ok
+++ b/test/indirectbuiltin.ok
@@ -14,6 +14,7 @@ math: sqrt: pass
math: srand: pass
math: xor: pass
string: gensub: pass
+string: gensub (3 args): pass
string: gsub: pass
string: index: pass
string: dcgettext: pass