/**
 * Copyright (C) 2022 by Martin Robillard. See https://codesample.info/about.html
 */
package e2.chapter5;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

public class AbsTest {
	
	@Test
	void testAbs_Positive() { 
assertEquals(5, Math.abs(5));
} @Test void testAbs_Negative() { assertEquals(5, Math.abs(-5)); } @Test void testAbs_Max() { // This test will fail. assertEquals(Integer.MAX_VALUE, Math.abs(Integer.MIN_VALUE)); } }