e6f0acd8fefb6ad05a1a450fde3700eb5c4f3a18,tests/test_go.py,TestGroupHandling,test_deduce_groups,#TestGroupHandling#,80
Before Change
], [
go.Group(
stones=set([pc("H9"), pc("J9")]),
liberties=set([pc("G9"), pc("H8"), pc("J8")])
)
]
)
After Change
self.assertEqual(expected_liberties, actual_liberties)
def test_deduce_groups(self):
expected_groups = ([
go.Group(
stones=pc_set("B9"),
liberties=pc_set("A9 C9 B8")
),
go.Group(
stones=pc_set("A8"),
liberties=pc_set("A9 A7 B8")
),
], [
go.Group(
stones=pc_set("H9 J9"),
liberties=pc_set("G9 H8 J8")
)
]
)
actual_groups = go.deduce_groups(TEST_BOARD)
self.assertEqual(expected_groups, actual_groups)
def test_update_groups(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: brilee/MuGo
Commit Name: e6f0acd8fefb6ad05a1a450fde3700eb5c4f3a18
Time: 2016-06-02
Author: brian.kihoon.lee@gmail.com
File Name: tests/test_go.py
Class Name: TestGroupHandling
Method Name: test_deduce_groups
Project Name: brilee/MuGo
Commit Name: 11ac89f72c9cc69e9111a4a152d04bba6555a0c0
Time: 2016-07-25
Author: brian.kihoon.lee@gmail.com
File Name: tests/test_sgf_wrapper.py
Class Name: TestSgfWrapper
Method Name: test_japanese_handicap_handling
Project Name: brilee/MuGo
Commit Name: 734564915efd19cf02234ae987b5c355719a2754
Time: 2016-06-02
Author: brian.kihoon.lee@gmail.com
File Name: tests/test_go.py
Class Name: TestGroupHandling
Method Name: test_update_groups