mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 06:02:14 +00:00
- Fixed a inheritance bug, and added a test for it.
[SVN r18251]
This commit is contained in:
@@ -53,6 +53,14 @@ class BasicExampleTest(unittest.TestCase):
|
||||
C.const_static_value = 1
|
||||
self.assertRaises(AttributeError, set_const_static)
|
||||
|
||||
# test static function
|
||||
def test_mul(result, *args):
|
||||
self.assertEqual(C.mul(*args), result)
|
||||
self.assertEqual(c.mul(*args), result)
|
||||
test_mul(6)
|
||||
test_mul(3, 1)
|
||||
test_mul(16, 8, 2)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user