Commit 3354c4ed authored by Martin Pitt's avatar Martin Pitt
Browse files

test_gobject: Add test case for min/max int constants

Related to https://bugzilla.gnome.org/show_bug.cgi?id=685022
parent d70cb327
......@@ -37,6 +37,15 @@ class TestGObjectAPI(unittest.TestCase):
self.assertLess(GObject.PRIORITY_HIGH, GObject.PRIORITY_DEFAULT)
def test_min_max_int(self):
self.assertEqual(GObject.G_MAXINT32, 2 ** 31 - 1)
self.assertEqual(GObject.G_MININT32, -2 ** 31)
self.assertEqual(GObject.G_MAXUINT32, 2 ** 32 - 1)
self.assertEqual(GObject.G_MAXINT64, 2 ** 63 - 1)
self.assertEqual(GObject.G_MININT64, -2 ** 63)
self.assertEqual(GObject.G_MAXUINT64, 2 ** 64 - 1)
class TestReferenceCounting(unittest.TestCase):
def test_regular_object(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment