示例#1
0
 def test_mutate(self):
     gene = FloatGene(value=10.3, min_value=0, max_value=100)
     gene.mutate()
示例#2
0
 def test_random_value(self):
     gene = FloatGene(value=1, min_value=0, max_value=100)
     val = gene.random_value()
     assert val >= gene.min_value and val <= gene.max_value