[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. apt-listbugs/0.1.5-21-gca683b2

Francesco Poli (wintermute) invernomuto at paranoici.org
Sat Dec 10 17:02:49 UTC 2011


The following commit has been merged in the master branch:
commit 0b1f9624c7c2f397880646bf1770b7794bbb3617
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Fri Dec 9 17:30:39 2011 +0100

    add another couple of assertions for unit testing
    
    Two assertions have been added to test_find_min_version_above_ver
    and to test_find_max_version_below_ver.

diff --git a/debian/changelog b/debian/changelog
index 62bdb51..cca66ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,7 +18,7 @@ apt-listbugs (0.1.6) UNRELEASED; urgency=low
   * enhanced the (theoretical) correctness of the code to check whether a
     bug is present in a package version
 
- -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Fri, 09 Dec 2011 16:02:48 +0100
+ -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Fri, 09 Dec 2011 17:29:08 +0100
 
 apt-listbugs (0.1.5) unstable; urgency=low
 
diff --git a/test_logic.rb b/test_logic.rb
index 781a5a1..6caf17b 100755
--- a/test_logic.rb
+++ b/test_logic.rb
@@ -60,6 +60,12 @@ class TC_BugsFactory < Test::Unit::TestCase
                                                                  "test"),
                  "max version below version, unordered versions")
 
+    assert_equal("1.0",
+                 Factory::BugsFactory.find_max_version_below_ver("0.8 1.0 1.0 1.5 2.0 2.0",
+                                                                 "1.3",
+                                                                 "test"),
+                 "max version below version, with duplicates")
+
     assert_equal("1.5",
                  Factory::BugsFactory.find_max_version_below_ver("0.8 1.0 1.5 2.0",
                                                                  "1.5",
@@ -92,6 +98,12 @@ class TC_BugsFactory < Test::Unit::TestCase
                                                                  "test"),
                  "min version above version, unordered versions")
 
+    assert_equal("1.5",
+                 Factory::BugsFactory.find_min_version_above_ver("0.8 0.8 1.0 1.5 1.5 2.0 2.0",
+                                                                 "1.3",
+                                                                 "test"),
+                 "min version above version, with duplicates")
+
     assert_equal("1.0",
                  Factory::BugsFactory.find_min_version_above_ver("0.8 1.0 1.5 2.0",
                                                                  "0.8",

-- 
apt-listbugs development tree



More information about the Apt-listbugs-commits mailing list