[DRE-commits] [SCM] ruby-bio.git branch, master, updated. debian/1.4.2-2-12-ga3d4b6c

Cédric Boutillier cedric.boutillier at gmail.com
Tue Jun 5 04:25:40 UTC 2012


The following commit has been merged in the master branch:
commit 7b5e2de4b8ce5e5e3dc7d71eb4cfb04b296c4308
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Sun Jun 3 16:19:33 2012 +0200

    Do not rely on hash order in tests (Closes: #674337)

diff --git a/debian/patches/do_not_rely_on_keys_order_for_hashes.patch b/debian/patches/do_not_rely_on_keys_order_for_hashes.patch
new file mode 100644
index 0000000..477a23d
--- /dev/null
+++ b/debian/patches/do_not_rely_on_keys_order_for_hashes.patch
@@ -0,0 +1,27 @@
+From 459d4da894e9a9b9db0d793e3711dc45bae2089b Mon Sep 17 00:00:00 2001
+From: Artem Tarasov <lomereiter at gmail.com>
+Date: Thu, 10 May 2012 16:23:13 +0400
+Subject: [PATCH] Test bug fix: order of hash keys are not guaranteed
+
+ * Test bug fix: Bio::TestSOFT#test_dataset: order of hash keys are
+   not guaranteed.
+---
+ test/unit/bio/db/test_soft.rb |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/unit/bio/db/test_soft.rb b/test/unit/bio/db/test_soft.rb
+index 97a1975..dad9fb0 100644
+--- a/test/unit/bio/db/test_soft.rb
++++ b/test/unit/bio/db/test_soft.rb
+@@ -90,7 +90,7 @@ def test_dataset
+       assert_equal( @obj_dataset.database[:institute], 'NCBI NLM NIH')
+ 
+       assert_equal( @obj_dataset.subsets.size, 8)
+-      assert_equal( @obj_dataset.subsets.keys, ["GDS100_1",
++      assert_equal( @obj_dataset.subsets.keys.sort, ["GDS100_1",
+        "GDS100_2",
+        "GDS100_3",
+        "GDS100_4",
+-- 
+1.7.10
+
diff --git a/debian/patches/series b/debian/patches/series
index 7a3b534..9cde860 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 disable-test-soap.patch
 fix_definition_CutSymbol_in_test_cut_symbol.patch
+do_not_rely_on_keys_order_for_hashes.patch

-- 
ruby-bio.git



More information about the Pkg-ruby-extras-commits mailing list