File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/test/java/com/thealgorithms/sorts Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 11package com .thealgorithms .sorts ;
22
33import static org .junit .jupiter .api .Assertions .assertArrayEquals ;
4- import static org .junit .jupiter .api .Assertions .assertThrows ;
54import static org .junit .jupiter .api .Assertions .assertNull ;
5+ import static org .junit .jupiter .api .Assertions .assertThrows ;
66
77import org .junit .jupiter .api .Test ;
88
@@ -80,10 +80,6 @@ void testNonIntegerArray() {
8080 DarkSort darkSort = new DarkSort ();
8181
8282 // DarkSort should throw an IllegalArgumentException for non-integer arrays
83- assertThrows (
84- IllegalArgumentException .class ,
85- () -> darkSort .sort (unsorted ),
86- "DarkSort only supports Integer arrays."
87- );
83+ assertThrows (IllegalArgumentException .class , () -> darkSort .sort (unsorted ), "DarkSort only supports Integer arrays." );
8884 }
8985}
You can’t perform that action at this time.
0 commit comments