aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-19 17:01:47 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-19 17:01:47 +0100
commitc984f7a05d8d64a3fe69904bac12b640b11d2aa8 (patch)
tree3d5f531ba6f37108f0b4648bc7766dd26b78f763
parent4654d9da9fe2ac1ae8a7511410aefd94a7980159 (diff)
downloadpaludis-c984f7a05d8d64a3fe69904bac12b640b11d2aa8.tar.gz
paludis-c984f7a05d8d64a3fe69904bac12b640b11d2aa8.tar.xz
IDs might not be returned sorted
-rw-r--r--ruby/repository_TEST.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby/repository_TEST.rb b/ruby/repository_TEST.rb
index 71da21f..374e0a8 100644
--- a/ruby/repository_TEST.rb
+++ b/ruby/repository_TEST.rb
@@ -97,6 +97,7 @@ module Paludis
def test_package_ids
a = repo.package_ids "foo/bar"
assert_equal 2, a.length
+ a.sort_by { | id | id.version }
assert_equal VersionSpec.new("1.0"), a[0].version
assert_equal VersionSpec.new("2.0"), a[1].version