예제 #1
0
 def test_type_match_complex(self):
     s = c_spec.complex_converter()
     assert_(s.type_match(5.+1j))
예제 #2
0
 def test_type_match_string(self):
     s = c_spec.complex_converter()
     assert_( not s.type_match('string') )
예제 #3
0
 def test_type_match_float(self):
     s = c_spec.complex_converter()
     assert_(not s.type_match(5.))
예제 #4
0
 def test_type_match_complex(self):
     s = c_spec.complex_converter()
     assert_(s.type_match(5. + 1j))
예제 #5
0
 def test_type_match_float(self):
     s = c_spec.complex_converter()
     assert_(not s.type_match(5.))
예제 #6
0
 def test_type_match_string(self):
     s = c_spec.complex_converter()
     assert_(not s.type_match('string'))
예제 #7
0
 def test_type_match_int(self):
     s = c_spec.complex_converter()
     assert(not s.type_match(5))
예제 #8
0
 def test_type_match_int(self):
     s = c_spec.complex_converter()
     assert (not s.type_match(5))