diff options
Diffstat (limited to 't/comp.term')
-rw-r--r-- | t/comp.term | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/t/comp.term b/t/comp.term new file mode 100644 index 0000000000..83cce45cbd --- /dev/null +++ b/t/comp.term @@ -0,0 +1,27 @@ +#!./perl + +# $Header: comp.term,v 1.0 87/12/18 13:12:40 root Exp $ + +# tests that aren't important enough for base.term + +print "1..9\n"; + +$x = "\\n"; +print "#1\t:$x: eq " . ':\n:' . "\n"; +if ($x eq '\n') {print "ok 1\n";} else {print "not ok 1\n";} + +$x = "#2\t:$x: eq :\\n:\n"; +print $x; +unless (index($x,'\\\\')>0) {print "ok 2\n";} else {print "not ok 2\n";} + +if (length('\\\\') == 2) {print "ok 3\n";} else {print "not ok 3\n";} + +$one = 'a'; + +if (length("\\n") == 2) {print "ok 4\n";} else {print "not ok 4\n";} +if (length("\\\n") == 2) {print "ok 5\n";} else {print "not ok 5\n";} +if (length("$one\\n") == 3) {print "ok 6\n";} else {print "not ok 6\n";} +if (length("$one\\\n") == 3) {print "ok 7\n";} else {print "not ok 7\n";} +if (length("\\n$one") == 3) {print "ok 8\n";} else {print "not ok 8\n";} +if (length("\\\n$one") == 3) {print "ok 9\n";} else {print "not ok 9\n";} + |