From 75640eed5922dd0f8f6ec1c13040979cf39666d8 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 5 Jun 2009 17:30:50 +0000 Subject: [PATCH] fixed problem in test using <=> instead of cmp --- t/Asset/Wobject/Collaboration/getThreads.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/Asset/Wobject/Collaboration/getThreads.t b/t/Asset/Wobject/Collaboration/getThreads.t index 848c235cb..61a343b6d 100644 --- a/t/Asset/Wobject/Collaboration/getThreads.t +++ b/t/Asset/Wobject/Collaboration/getThreads.t @@ -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