mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 01:10:12 +02:00
30 lines
806 B
Python
30 lines
806 B
Python
import unittest
|
|
from unittests import wtc
|
|
import wx
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class wacky_ints_Tests(unittest.TestCase):
|
|
|
|
@unittest.skipIf(not hasattr(wx, 'testSizetTypemap'), '')
|
|
def test_wacky1(self):
|
|
n = wx.testSizetTypemap(123456)
|
|
self.assertEqual(n, 123456)
|
|
|
|
@unittest.skipIf(not hasattr(wx, 'testIntPtrTypemap'), '')
|
|
def test_wacky2(self):
|
|
n = wx.testIntPtrTypemap(123456)
|
|
self.assertEqual(n, 123456)
|
|
|
|
@unittest.skipIf(not hasattr(wx, 'testUIntPtrTypemap'), '')
|
|
def test_wacky3(self):
|
|
n = wx.testUIntPtrTypemap(123456)
|
|
self.assertEqual(n, 123456)
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|