File tree 1 file changed +2
-6
lines changed
src/test/java/com/thealgorithms/sorts 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
package com .thealgorithms .sorts ;
2
2
3
3
import static org .junit .jupiter .api .Assertions .assertArrayEquals ;
4
- import static org .junit .jupiter .api .Assertions .assertThrows ;
5
4
import static org .junit .jupiter .api .Assertions .assertNull ;
5
+ import static org .junit .jupiter .api .Assertions .assertThrows ;
6
6
7
7
import org .junit .jupiter .api .Test ;
8
8
@@ -80,10 +80,6 @@ void testNonIntegerArray() {
80
80
DarkSort darkSort = new DarkSort ();
81
81
82
82
// 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." );
88
84
}
89
85
}
You can’t perform that action at this time.
0 commit comments