コード例 #1
0
ファイル: test_words.py プロジェクト: m0n0ph1/Fugue-Generator
 def test_returns_valid_genomes(self):
     """
     Checks the genomes returned by the create_population function are
     of the correct type.
     """
     result = create_population(1, TARGET_WORD)
     self.assertEqual(Genome, type(result[0]))
コード例 #2
0
ファイル: test_words.py プロジェクト: GitBruno/foox
 def test_returns_valid_genomes(self):
     """
     Checks the genomes returned by the create_population function are
     of the correct type.
     """
     result = create_population(1, TARGET_WORD)
     self.assertEqual(Genome, type(result[0]))
コード例 #3
0
ファイル: test_words.py プロジェクト: m0n0ph1/Fugue-Generator
 def test_returns_correct_number_of_genomes(self):
     """
     Ensures the correct number of genomes are returned by the function.
     """
     result = create_population(100, TARGET_WORD)
     self.assertEqual(100, len(result))
コード例 #4
0
ファイル: test_words.py プロジェクト: GitBruno/foox
 def test_returns_correct_number_of_genomes(self):
     """
     Ensures the correct number of genomes are returned by the function.
     """
     result = create_population(100, TARGET_WORD)
     self.assertEqual(100, len(result))