diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-09-20 21:37:48 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-09-20 21:37:48 +0300 |
commit | d64da79c830daee5b0c9e125320f240a22aa4110 (patch) | |
tree | d46aaf2311624509d8dab4c1bb3822c05bcab056 /test/anchor.awk | |
parent | d6493fae8856653b4eaa866e859f51b7218e4446 (diff) | |
parent | 491c127c5c78f0729f3e75bc0d07d49285a2041b (diff) | |
download | egawk-d64da79c830daee5b0c9e125320f240a22aa4110.tar.gz egawk-d64da79c830daee5b0c9e125320f240a22aa4110.tar.bz2 egawk-d64da79c830daee5b0c9e125320f240a22aa4110.zip |
Merge branch 'master' into feature/nocopy
Diffstat (limited to 'test/anchor.awk')
-rw-r--r-- | test/anchor.awk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/anchor.awk b/test/anchor.awk new file mode 100644 index 00000000..56f47569 --- /dev/null +++ b/test/anchor.awk @@ -0,0 +1,33 @@ +BEGIN { RS = "" } + +{ + if (/^A/) + print "ok" + else + print "not ok" + + if (/B$/) + print "not ok" + else + print "ok" + + if (/^C/) + print "not ok" + else + print "ok" + + if (/D$/) + print "not ok" + else + print "ok" + + if (/^E/) + print "not ok" + else + print "ok" + + if (/F$/) + print "ok" + else + print "not ok" +} |