Performs a few arbitrary tests to see if the sum method is correct
()
| 23 | |
| 24 | /** Performs a few arbitrary tests to see if the sum method is correct */ |
| 25 | @Test |
| 26 | @Order(1) |
| 27 | @DisplayName("Test sum correctness") |
| 28 | public void testSum() { |
| 29 | assertThat(Arithmetic.sum(5, 6)).isEqualTo(11); |
| 30 | assertThat(Arithmetic.sum(5, -6)).isEqualTo(-1); |
| 31 | assertThat(Arithmetic.sum(0, -6)).isEqualTo(-6); |
| 32 | assertThat(Arithmetic.sum(6, -6)).isEqualTo(0); |
| 33 | } |
| 34 | } |