|
|
@ -40,7 +40,22 @@ class LeaderboardTest { |
|
|
|
"TestPlayer", |
|
|
|
new Player[] {new Player("Eins", 140), new Player("Zwei", 130), new Player("Drei", 120), new Player("Vier", 110), |
|
|
|
new Player("Fuenf", 100), new Player("Sechs", 90), new Player("Sieben", 80), new Player("Acht", 70), |
|
|
|
new Player("Neun", 60), new Player("Zehn", 50)})); |
|
|
|
new Player("Neun", 60), new Player("Zehn", 50)}), |
|
|
|
Arguments.of("UnsortedListWithLessThan10ElementsReturnsElementsSortedByPoints", |
|
|
|
List.of(new Player("Eins", 20), new Player("Zwei", 30), new Player("Drei", 10), new Player("Vier", 60), |
|
|
|
new Player("Fuenf", 50), new Player("Sechs", 90)), |
|
|
|
"TestPlayer", |
|
|
|
new Player[] {new Player("Sechs", 90), new Player("Vier", 60), new Player("Fuenf", 50), new Player("Zwei", 30), |
|
|
|
new Player("Eins", 20), new Player("Drei", 10), null, null, null, null}), |
|
|
|
Arguments.of("UnsortedListWithMoreThan10ElementsReturns10ElementsWithMostPointsSortedByPoints", |
|
|
|
List.of(new Player("Eins", 0), new Player("Zwei", 130), new Player("Drei", 20), new Player("Vier", 10), |
|
|
|
new Player("Fuenf", 20), new Player("Sechs", 70), new Player("Sieben", 60), new Player("Acht", 20), |
|
|
|
new Player("Neun", 60), new Player("Zehn", 50), new Player("Elf", 90), new Player("Zwoelf", 20), |
|
|
|
new Player("Dreizehn", 40), new Player("Vierzehn", 80)), |
|
|
|
"TestPlayer", |
|
|
|
new Player[] {new Player("Zwei", 130), new Player("Elf", 90), new Player("Vierzehn", 80), new Player("Sechs", 70), |
|
|
|
new Player("Sieben", 60), new Player("Neun", 60), new Player("Zehn", 50), new Player("Dreizehn", 40), |
|
|
|
new Player("Drei", 20), new Player("Fuenf", 20)})); |
|
|
|
} |
|
|
|
|
|
|
|
} |