improve setup.py description string
[pyion.git] / tests / n / test_limits.py
blob24c057e3e20d4225a501b843bb4c32206431bb51
1 from iontest import *
3 class testLimits (IonTestCase):
4 def testInt (self):
5 """integer dtype limit check"""
6 from ion.n import limits
7 for code, minv, maxv in (('c', 0, 255),
8 ('b', -128, +127), ('B', 0, 255),
9 ('h', -32768, +32767), ('H', 0, 65535),
10 ('i', -2147483648, +2147483647),
11 ('I', 0, 4294967295L),
12 ('q', -9223372036854775808L, 9223372036854775807),
13 ('Q', 0, 18446744073709551615L),):
14 result = limits (code)
15 self.assertEqual ((minv, maxv), result)
17 if __name__ == "__main__":
18 main()