Class BubbleSentinelTest
java.lang.Object
topics.sorting.bubble.BubbleSentinelTest
Validation Suite for Optimized Bubble Sort (Sentinel)
Verifies the accuracy and early-termination stability of the sentinel-backed Bubble Sort implementation across varied array configurations.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidsetup()(package private) voidScenario: Larger array with wider numerical variance.(package private) voidScenario: Small array with mixed inversions.
-
Constructor Details
-
BubbleSentinelTest
BubbleSentinelTest()
-
-
Method Details
-
setup
@BeforeAll static void setup() -
shouldSortSmallMixedSequence
@Test void shouldSortSmallMixedSequence()Scenario: Small array with mixed inversions.
-
shouldSortLargerVariedSequence
@Test void shouldSortLargerVariedSequence()Scenario: Larger array with wider numerical variance.
-