Exemple #1
0
 def test_type_match_complex(self):
     s = c_spec.string_converter()
     assert_(not s.type_match(5.+1j))
Exemple #2
0
 def test_type_match_float(self):
     s = c_spec.string_converter()
     assert_(not s.type_match(5.))
Exemple #3
0
 def test_type_match_string(self):
     s = c_spec.string_converter()
     assert_(s.type_match('string'))
Exemple #4
0
 def test_type_match_complex(self):
     s = c_spec.string_converter()
     assert_(not s.type_match(5.+1j))
Exemple #5
0
 def test_type_match_float(self):
     s = c_spec.string_converter()
     assert_(not s.type_match(5.))
Exemple #6
0
 def test_type_match_string(self):
     s = c_spec.string_converter()
     assert_(s.type_match('string'))