[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 d34cf8af0fd8c73952fa1b83e49919d8229ef035
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date: Sat Dec 10 00:16:44 2011 +0100
enhance test_bug_is_irrelevant[_list]
More assertions have been added to the test_bug_is_irrelevant and
test_bug_is_irrelevant_list unit tests.
diff --git a/debian/changelog b/debian/changelog
index 12953ca..2086ff4 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 18:33:35 +0100
+ -- Francesco Poli (wintermute) <invernomuto at paranoici.org> Sat, 10 Dec 2011 00:14:17 +0100
apt-listbugs (0.1.5) unstable; urgency=low
diff --git a/test_logic.rb b/test_logic.rb
index 1ecd622..fd0e0b2 100755
--- a/test_logic.rb
+++ b/test_logic.rb
@@ -440,23 +440,43 @@ class TC_BugsFactory < Test::Unit::TestCase
assert_equal(true,
Factory::BugsFactory.bug_is_irrelevant("apt",
- "0.7.14", nil,
+ "0.4.1", "0.7.14",
482476,
nil, # fixed
["apt/0.7.11", "apt/0.6.46.4-0.1"].join(" "), # found
"done"
),
- "bug which is 'done' without fixed version info")
+ "bug which is 'done' without fixed version info: upgrade")
+
+ assert_equal(true,
+ Factory::BugsFactory.bug_is_irrelevant("apt",
+ nil, "0.7.14",
+ 482476,
+ nil, # fixed
+ ["apt/0.7.11", "apt/0.6.46.4-0.1"].join(" "), # found
+ "done"
+ ),
+ "bug which is 'done' without fixed version info: installation")
assert_equal(false,
Factory::BugsFactory.bug_is_irrelevant("apt",
- "0.7.14", nil,
+ "0.4.1", "0.7.14",
482476,
"0.7.15", # fixed
["apt/0.7.11", "apt/0.6.46.4-0.1"].join(" "), # found
"done"
),
- "bug which is 'done' with fixed version info")
+ "bug which is 'done' with fixed version info: upgrade")
+
+ assert_equal(false,
+ Factory::BugsFactory.bug_is_irrelevant("apt",
+ nil, "0.7.14",
+ 482476,
+ "0.7.15", # fixed
+ ["apt/0.7.11", "apt/0.6.46.4-0.1"].join(" "), # found
+ "done"
+ ),
+ "bug which is 'done' with fixed version info: installation")
assert_equal(true,
Factory::BugsFactory.bug_is_irrelevant("apt-test",
@@ -499,6 +519,15 @@ class TC_BugsFactory_List < Test::Unit::TestCase
),
"apt-listbugs list with non-buggy version")
+ assert_equal(false,
+ Factory::BugsFactory.bug_is_irrelevant("apt-test",
+ nil, nil,
+ 123456,
+ ["apt-test/2.0", "apt-test/3.5"].join(" "), # fixed
+ ["apt-test/1.5", "apt-test/3.0"].join(" ") # found
+ ),
+ "apt-listbugs list without specifying any version")
+
assert_equal(true,
Factory::BugsFactory.bug_is_irrelevant("apt",
nil, "0.7.14+b1",
--
apt-listbugs development tree
More information about the Apt-listbugs-commits
mailing list