Skip to content

Commit

Permalink
Item12888: badly written test not really failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Crawford Currie committed Jul 2, 2015
1 parent 1d176b5 commit c1ab6f5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions UnitTestContrib/test/unit/Fn_SEARCH.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6872,16 +6872,19 @@ sub verify_search_for_star {

my $search = <<'HERE';
%SEARCH{
"*"
type="word"
"*"
type="word"
scope="all"
web="TestCases"
}%
HERE
my $result = $this->{test_topicObject}->expandMacros($search);

# Should get the default search order (or an error message, perhaps?)
$this->assert_matches( 'Number of topics: <span>5</span>', $result );
$this->assert( 0, $result )
unless $result =~ /Number of topics: <span>(\d+)<\/span>/;
print STDERR "$1 topic\n";
$this->assert( $1 >= 4 );

return;
}
Expand Down

0 comments on commit c1ab6f5

Please sign in to comment.