[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:48 UTC 2011


The following commit has been merged in the master branch:
commit 6d8aff79c44947c6853289f27ba9a1d8b85e7ee3
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Fri Dec 9 00:07:31 2011 +0100

    enhance test_am_i_buggy
    
    More assertions have been added to the test_am_i_buggy unit test.

diff --git a/debian/changelog b/debian/changelog
index 0f65e4e..e6243d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,7 +16,7 @@ apt-listbugs (0.1.6) UNRELEASED; urgency=low
     currently ignores the "affects" BTS field
   * added more assertions to the first test suite
 
- -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Thu, 08 Dec 2011 19:00:18 +0100
+ -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Fri, 09 Dec 2011 00:04:58 +0100
 
 apt-listbugs (0.1.5) unstable; urgency=low
 
diff --git a/test_logic.rb b/test_logic.rb
index 3ff1205..bc959a5 100755
--- a/test_logic.rb
+++ b/test_logic.rb
@@ -125,9 +125,15 @@ class TC_BugsFactory < Test::Unit::TestCase
     # e)  ----------------V------x----o------  buggy
     # e') ----------------V-----(xo)---------  buggy
     # f)  ----------o-----V--- ? -- ? -- ? --  buggy
+    # f') --------------(oV)-- ? -- ? -- ? --  buggy
     # g)  ----------x-----V--- ? -- ? -- ? --  non-buggy
+    # g') --------------(xV)-- ? -- ? -- ? --  non-buggy
     # h)  -----o----x-----V--- ? -- ? -- ? --  non-buggy
+    # h') -----o--------(xV)-- ? -- ? -- ? --  non-buggy
     # i)  -----x----o-----V--- ? -- ? -- ? --  buggy
+    # i') -----x--------(oV)-- ? -- ? -- ? --  buggy
+    # j)  --------(xo)----V--- ? -- ? -- ? --  buggy
+    # j') -------------(xoV)-- ? -- ? -- ? --  buggy
 
     assert_equal(true,
                  Factory::BugsFactory.am_i_buggy(
@@ -186,6 +192,14 @@ class TC_BugsFactory < Test::Unit::TestCase
                                                  ),
                  "f)  ----------o-----V--- ? -- ? -- ? --  buggy")
 
+    assert_equal(true,
+                 Factory::BugsFactory.am_i_buggy(
+                                                 "3",
+                                                 [""].join(" "), # fixed
+                                                 ["3"].join(" ")  # found
+                                                 ),
+                 "f') --------------(oV)-- ? -- ? -- ? --  buggy")
+
     assert_equal(false,
                  Factory::BugsFactory.am_i_buggy(
                                                  "3",
@@ -197,11 +211,27 @@ class TC_BugsFactory < Test::Unit::TestCase
     assert_equal(false,
                  Factory::BugsFactory.am_i_buggy(
                                                  "3",
+                                                 ["3","4"].join(" "), # fixed
+                                                 ["4"].join(" ")  # found
+                                                 ),
+                 "g') --------------(xV)-- ? -- ? -- ? --  non-buggy")
+
+    assert_equal(false,
+                 Factory::BugsFactory.am_i_buggy(
+                                                 "3",
                                                  ["2","5"].join(" "), # fixed
                                                  ["1","4"].join(" ")  # found
                                                  ),
                  "h)  -----o----x-----V--- ? -- ? -- ? --  non-buggy")
 
+    assert_equal(false,
+                 Factory::BugsFactory.am_i_buggy(
+                                                 "3",
+                                                 ["3","4"].join(" "), # fixed
+                                                 ["1","5"].join(" ")  # found
+                                                 ),
+                 "h') -----o--------(xV)-- ? -- ? -- ? --  non-buggy")
+
     assert_equal(true,
                  Factory::BugsFactory.am_i_buggy(
                                                  "3",
@@ -212,6 +242,30 @@ class TC_BugsFactory < Test::Unit::TestCase
 
     assert_equal(true,
                  Factory::BugsFactory.am_i_buggy(
+                                                 "3",
+                                                 ["1","5"].join(" "), # fixed
+                                                 ["3","5"].join(" ")  # found
+                                                 ),
+                 "i') -----x--------(oV)-- ? -- ? -- ? --  buggy")
+
+    assert_equal(true,
+                 Factory::BugsFactory.am_i_buggy(
+                                                 "3",
+                                                 ["2","4"].join(" "), # fixed
+                                                 ["2","5"].join(" ")  # found
+                                                 ),
+                 "j)  --------(xo)----V--- ? -- ? -- ? --  buggy")
+
+    assert_equal(true,
+                 Factory::BugsFactory.am_i_buggy(
+                                                 "3",
+                                                 ["3","4"].join(" "), # fixed
+                                                 ["3"].join(" ")  # found
+                                                 ),
+                 "j') -------------(xoV)-- ? -- ? -- ? --  buggy")
+
+    assert_equal(true,
+                 Factory::BugsFactory.am_i_buggy(
                                                  "1.5",
                                                  ["apt-test/2.0", "apt-test/3.5"].join(" "), # fixed
                                                  ["apt-test/1.5", "apt-test/3.0"].join(" ")  # found

-- 
apt-listbugs development tree



More information about the Apt-listbugs-commits mailing list