File tree Expand file tree Collapse file tree
src/test/java/com/thealgorithms/conversions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .thealgorithms .conversions ;
22
3- import org .junit .jupiter .api .Test ;
4-
53import static org .junit .jupiter .api .Assertions .assertEquals ;
64import static org .junit .jupiter .api .Assertions .assertThrows ;
75
6+ import org .junit .jupiter .api .Test ;
7+
88public class TemperatureConverterTest {
99
1010 @ Test
@@ -69,15 +69,11 @@ public void testValidKelvinToFahrenheit() {
6969
7070 @ Test
7171 public void testAbsoluteZeroAndBelow () {
72-
7372 assertThrows (IllegalArgumentException .class , () -> TemperatureConverter .celsiusToFahrenheit (-300.0 ));
7473 assertThrows (IllegalArgumentException .class , () -> TemperatureConverter .celsiusToKelvin ("-300°C" ));
75-
7674 assertThrows (IllegalArgumentException .class , () -> TemperatureConverter .fahrenheitToCelsius (-500.0 ));
7775 assertThrows (IllegalArgumentException .class , () -> TemperatureConverter .fahrenheitToKelvin ("-500°F" ));
78-
7976 assertThrows (IllegalArgumentException .class , () -> TemperatureConverter .kelvinToCelsius (-1.0 ));
8077 assertThrows (IllegalArgumentException .class , () -> TemperatureConverter .kelvinToFahrenheit ("-1 K" ));
8178 }
82-
83- }
79+ }
You can’t perform that action at this time.
0 commit comments