fixed problem in test using <=> instead of cmp
This commit is contained in:
parent
457f7f2dc6
commit
75640eed59
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ $session->scratch->set($collab->getId.'_sortBy','title');
|
|||
$session->scratch->set($collab->getId.'_sortDir','desc');
|
||||
$p = $collab->getThreadsPaginator;
|
||||
$page = $p->getPageData;
|
||||
$expect = sortThreads( sub { $b->get('title') <=> $a->get('title') }, @threads );
|
||||
$expect = sortThreads( sub { $b->get('title') cmp $a->get('title') }, @threads );
|
||||
cmp_deeply( $page, $expect, 'getThreadsPaginator sort by set directly from scratch' )
|
||||
or diag( "GOT: " . Dumper $page ), diag( "EXPECTED: " . Dumper $expect );
|
||||
# clear scratch to reset sort
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue