Exemplo n.º 1
0
 def test_dixons_treble_leading_backstroke_single(self):
     generator = DixonoidsGenerator(6, DixonoidsGenerator.DixonsRules)
     generator.set_single()
     # Handstroke previous
     previous_row = as_bells([1, 3, 2, 4, 6, 5])
     new_row = generator._gen_row(previous_row, stroke=BACKSTROKE, index=0)
     self.assertEqual(as_bells([1, 3, 2, 4, 5, 6]), new_row)
Exemplo n.º 2
0
 def test_dixons_treble_leading_handstroke(self):
     generator = DixonoidsGenerator(6, DixonoidsGenerator.DixonsRules)
     # Backstroke previous
     previous_row = as_bells([1, 4, 3, 2, 5, 6])
     new_row = generator._gen_row(previous_row, stroke=HANDSTROKE, index=0)
     self.assertEqual(as_bells([4, 1, 2, 3, 6, 5]), new_row)
Exemplo n.º 3
0
 def test_dixons_five_leading_backstroke(self):
     generator = DixonoidsGenerator(6, DixonoidsGenerator.DixonsRules)
     # Handstroke previous
     previous_row = as_bells([5, 6, 3, 4, 1, 2])
     new_row = generator._gen_row(previous_row, stroke=BACKSTROKE, index=0)
     self.assertEqual(as_bells([5, 3, 6, 1, 4, 2]), new_row)