aboutsummaryrefslogtreecommitdiffstats
path: root/test/anchor.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-09-20 21:33:04 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-09-20 21:33:04 +0300
commitf1f7dea6875d0b9cd3f68c115bec3dfa0e6a541e (patch)
tree6abde84184a5b11329e048b28010a71daa4fd7ad /test/anchor.awk
parentcd7ee26d9606f1832bc8974fe41cc9a80b323861 (diff)
parent491c127c5c78f0729f3e75bc0d07d49285a2041b (diff)
downloadegawk-f1f7dea6875d0b9cd3f68c115bec3dfa0e6a541e.tar.gz
egawk-f1f7dea6875d0b9cd3f68c115bec3dfa0e6a541e.tar.bz2
egawk-f1f7dea6875d0b9cd3f68c115bec3dfa0e6a541e.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'test/anchor.awk')
-rw-r--r--test/anchor.awk33
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"
+}