Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.junit.jupiter.api.Test;
- import static org.junit.jupiter.api.Assertions.*;
- class CalculationTest {
- @Test
- void maxTest() throws Exception {
- int[] arr = {10, 22, 35, 46, 52, 68};
- int maxValue = Calculation.findMax(arr);
- int expectedMaxNumber = 68;
- assertEquals(68, maxValue );
- }
- @Test
- void cube() throws Exception {
- int num = Calculation.cube(4);
- int expectedNumber = 64;
- assertEquals(expectedNumber, num);
- }
- }
Add Comment
Please, Sign In to add comment