b32a4724dd2f8c97ff3b3813e5622d6bb6fb8f7a,tests/test_sgf_wrapper.py,TestSgfWrapper,test_chinese_handicap_handling,#TestSgfWrapper#,97

Before Change


        self.assertEqualPositions(intermediate_position, positions_w_context[1].position)
        self.assertEqual(positions_w_context[1].next_move, pc("C3"))
        self.assertEqualPositions(final_position, positions_w_context[-1].position)
        self.assertFalse(positions_w_context[-1].is_usable())
        self.assertTrue(positions_w_context[-2].is_usable())

class TestPositionReplay(GoPositionTestCase):
    def test_replay_position(self):

After Change


        positions_w_context = list(replay_sgf(CHINESE_HANDICAP_SGF))
        self.assertEqualPositions(intermediate_position, positions_w_context[1].position)
        self.assertEqual(positions_w_context[1].next_move, pc("C3"))
        final_replayed_position = positions_w_context[-1].position.play_move(
            positions_w_context[-1].next_move)
        self.assertEqualPositions(final_position, final_replayed_position)

if __name__ == "__main__":
    unittest.main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/minigo
Commit Name: b32a4724dd2f8c97ff3b3813e5622d6bb6fb8f7a
Time: 2018-01-15
Author: brian.kihoon.lee@gmail.com
File Name: tests/test_sgf_wrapper.py
Class Name: TestSgfWrapper
Method Name: test_chinese_handicap_handling


Project Name: tensorflow/minigo
Commit Name: b32a4724dd2f8c97ff3b3813e5622d6bb6fb8f7a
Time: 2018-01-15
Author: brian.kihoon.lee@gmail.com
File Name: tests/test_sgf_wrapper.py
Class Name: TestPositionReplay
Method Name: test_replay_position


Project Name: tensorflow/minigo
Commit Name: b32a4724dd2f8c97ff3b3813e5622d6bb6fb8f7a
Time: 2018-01-15
Author: brian.kihoon.lee@gmail.com
File Name: tests/test_sgf_wrapper.py
Class Name: TestSgfWrapper
Method Name: test_japanese_handicap_handling