mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
15 lines
344 B
Java
15 lines
344 B
Java
package com.thealgorithms.maths;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class MaxValueTest {
|
|
@Test
|
|
public void maxTest() {
|
|
assertEquals(-1, MaxValue.max(-1, -3));
|
|
assertEquals(3, MaxValue.max(3, 2));
|
|
assertEquals(5, MaxValue.max(5, 5));
|
|
}
|
|
}
|