Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
379 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!./perl | ||
|
||
# t/base/if.t - check "if" | ||
|
||
print "1..2\n"; | ||
|
||
# first test to see if we can run the tests. | ||
# First test to see if we can run the tests. | ||
|
||
$x = 'test'; | ||
if ($x eq $x) { print "ok 1 - if eq\n"; } else { print "not ok 1 - if eq\n";} | ||
if ($x ne $x) { print "not ok 2 - if ne\n"; } else { print "ok 2 - if ne\n";} | ||
if ($x eq $x) { print "ok 1 - if eq\n"; } else { print "not ok 1 - if eq\n"; } | ||
if ($x ne $x) { print "not ok 2 - if ne\n"; } else { print "ok 2 - if ne\n"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#!./perl | ||
|
||
# t/base/pat.t - check base regex for $_ | ||
|
||
print "1..2\n"; | ||
|
||
# first test to see if we can run the tests. | ||
# First test to see if we can run the tests. | ||
|
||
$_ = 'test'; | ||
if (/^test/) { print "ok 1 - match regex\n"; } else { print "not ok 1 - match regex\n";} | ||
if (/^foo/) { print "not ok 2 - match regex\n"; } else { print "ok 2 - match regex\n";} | ||
/^test/ | ||
? ( print "ok 1 - match regex\n" ) | ||
: ( print "not ok 1 - match regex\n" ); | ||
|
||
/^foo/ | ||
? ( print "not ok 2 - match regex\n" ) | ||
: ( print "ok 2 - match regex\n" ); |
Oops, something went wrong.