Added openLC map

This commit is contained in:
Willem Cazander 2022-01-31 17:55:48 +01:00
parent 8b6b4dbc3a
commit d5a9f9af6d
2 changed files with 14 additions and 0 deletions

View file

@ -38,4 +38,12 @@ public class T20PartScoreTest {
Assertions.assertEquals(T20PartScore.PART_19, T20PartScore.valueOfChina(""));
Assertions.assertEquals(T20PartScore.PART_20, T20PartScore.valueOfChina(""));
}
@Test
public void testOpenLCMap() {
Assertions.assertEquals(T20PartScore.PART_1, T20PartScore.valueOfOpenLC("2"));
Assertions.assertEquals(T20PartScore.PART_2, T20PartScore.valueOfOpenLC("3"));
Assertions.assertEquals(T20PartScore.PART_19, T20PartScore.valueOfOpenLC("W"));
Assertions.assertEquals(T20PartScore.PART_20, T20PartScore.valueOfOpenLC("X"));
}
}