Class BubbleSentinelTest

java.lang.Object
topics.sorting.bubble.BubbleSentinelTest

class BubbleSentinelTest extends Object

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 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.