mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 15:02:46 +08:00
15 lines
343 B
Java
15 lines
343 B
Java
package com.thealgorithms.maths;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class JosephusProblemTest {
|
|
|
|
@Test
|
|
void testJosephusProblem() {
|
|
assertEquals(3, JosephusProblem.findTheWinner(5, 2));
|
|
assertEquals(5, JosephusProblem.findTheWinner(6, 4));
|
|
}
|
|
}
|