]> git.saurik.com Git - apt.git/blobdiff - test/libapt/assert.h
fix compiler warning about signed comparision on amd64, too
[apt.git] / test / libapt / assert.h
index ce5accc1c537e3876308aebe31cd5bccb55644dd..a07be4b5739289524d079564cc0fb0a865de601d 100644 (file)
@@ -26,6 +26,18 @@ void assertEquals(int const &expect, unsigned int const &get, unsigned long cons
        assertEquals<unsigned int const&, unsigned int const&>(expect, get, line);
 }
 
+void assertEquals(unsigned long const &expect, int const &get, unsigned long const &line) {
+       if (get < 0)
+               OutputAssertEqual(expect, "==", get, line);
+       assertEquals<unsigned long const&, unsigned long const&>(expect, get, line);
+}
+
+void assertEquals(int const &expect, unsigned long const &get, unsigned long const &line) {
+       if (expect < 0)
+               OutputAssertEqual(expect, "==", get, line);
+       assertEquals<unsigned long const&, unsigned long const&>(expect, get, line);
+}
+
 
 #define equalsOr2(x,y,z) assertEqualsOr2(y, z, x, __LINE__)