perl 1.0 patch 1: Portability bugs and one possible SIGSEGV
[p5sagit/p5-mst-13.2.git] / t / comp.term
CommitLineData
8d063cd8 1#!./perl
2
3# $Header: comp.term,v 1.0 87/12/18 13:12:40 root Exp $
4
5# tests that aren't important enough for base.term
6
7print "1..9\n";
8
9$x = "\\n";
10print "#1\t:$x: eq " . ':\n:' . "\n";
11if ($x eq '\n') {print "ok 1\n";} else {print "not ok 1\n";}
12
13$x = "#2\t:$x: eq :\\n:\n";
14print $x;
15unless (index($x,'\\\\')>0) {print "ok 2\n";} else {print "not ok 2\n";}
16
17if (length('\\\\') == 2) {print "ok 3\n";} else {print "not ok 3\n";}
18
19$one = 'a';
20
21if (length("\\n") == 2) {print "ok 4\n";} else {print "not ok 4\n";}
22if (length("\\\n") == 2) {print "ok 5\n";} else {print "not ok 5\n";}
23if (length("$one\\n") == 3) {print "ok 6\n";} else {print "not ok 6\n";}
24if (length("$one\\\n") == 3) {print "ok 7\n";} else {print "not ok 7\n";}
25if (length("\\n$one") == 3) {print "ok 8\n";} else {print "not ok 8\n";}
26if (length("\\\n$one") == 3) {print "ok 9\n";} else {print "not ok 9\n";}
27