Class ShellsortTest
java.lang.Object
topics.sorting.shellsort.ShellsortTest
Validation Suite for Shellsort
Verifies the mathematical integrity of the gapped shifting logic and ensures the algorithm correctly reduces to a standard insertion sort on the final pass (gap = 1).
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidsetup()(package private) voidScenario: Larger array containing multi-digit integers spanning different magnitudes.(package private) voidScenario: Small array with mixed inversions.
-
Constructor Details
-
ShellsortTest
ShellsortTest()
-
-
Method Details
-
setup
@BeforeAll static void setup() -
shouldSortSmallMixedSequence
@Test void shouldSortSmallMixedSequence()Scenario: Small array with mixed inversions.
-
shouldSortLargerVariedSequence
@Test void shouldSortLargerVariedSequence()Scenario: Larger array containing multi-digit integers spanning different magnitudes.
-