Skip to content

Commit

Permalink
Item1247: Fixed CommentPlugin calls to assert_matches
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x00@2998 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Mar 11, 2009
1 parent 3015b8e commit c0da3e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CommentPlugin/test/unit/CommentPlugin/CommentPluginTests.pm
Expand Up @@ -218,13 +218,13 @@ HERE

if( $topic eq $this->{test_topic} && $web eq $this->{test_web} ) {
if ( $type eq "top") {
$this->assert_matches(qr/$comm.*TopOfTopic/s, $text);
$this->assert_matches(qr/^$comm.*^TopOfTopic/ms, $text);
} elsif ( $type eq "bottom" ) {
$this->assert_matches(qr/BottomOfTopic.*$comm/s, $text);
$this->assert_matches(qr/^BottomOfTopic.*^$comm/ms, $text);
} elsif ( $type eq "above" ) {
$this->assert_matches(qr/TopOfTopic.*$comm.*$refexpr/s, $text);
$this->assert_matches(qr/^TopOfTopic.*^$comm.*$refexpr/ms, $text);
} elsif ( $type eq "below" ) {
$this->assert_matches(qr/$refexpr.*$comm.*BottomOfTopic/s, $text);
$this->assert_matches(qr/$refexpr.*$comm.*^BottomOfTopic/ms, $text);
}
}
}
Expand Down

0 comments on commit c0da3e9

Please sign in to comment.