From 0f32e9b6fb5533de250f333dc3382f6c7acc9892 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 26 Jan 2010 15:21:15 -0800 Subject: [PATCH] Fix the AssetLineage test that I broke. --- t/Asset/AssetLineage.t | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/t/Asset/AssetLineage.t b/t/Asset/AssetLineage.t index e712188eb..1cb39cd35 100644 --- a/t/Asset/AssetLineage.t +++ b/t/Asset/AssetLineage.t @@ -166,17 +166,15 @@ cmp_bag( ); $ids = getListFromIterator($folder->getLineageIterator(['self','descendants'])); -unshift @snipIds, $folder->getId; cmp_bag( - \@snipIds, + [$folder->getId, @snipIds], $ids, 'getLineageIterator: get descendants of folder and self' ); -shift @snipIds; $ids = getListFromIterator($folder->getLineageIterator(['self','children'])); cmp_bag( - \@snipIds, + [$folder->getId, @snipIds], $ids, 'getLineageIterator: descendants == children if there are no grandchildren' ); @@ -190,12 +188,11 @@ cmp_bag( $ids = getListFromIterator($topFolder->getLineageIterator(['self','descendants'])); cmp_bag( - [$topFolder->getId, @snipIds, $folder2->getId, $snippet2->getId], + [$topFolder->getId, $folder->getId, @snipIds, $folder2->getId, $snippet2->getId], $ids, 'getLineageIterator: descendants of topFolder', ); - #################################################### # # getFirstChild