Beispiel #1
0
 def test_bad_examples(self):
     for x in ["", "x2.0", "1000x", ";-1e3", ";;"]:
         assert not species_trees.is_number(x)
Beispiel #2
0
 def test_good_examples(self):
     for x in ["2", "2.0", "1000", "-1e3", "1e-6"]:
         assert species_trees.is_number(x)