Class HeapsortTest

java.lang.Object
topics.sorting.heapsort.HeapsortTest

class HeapsortTest extends Object

Validation Suite for Heapsort

Verifies both the structural heap-building logic and the subsequent extraction phase to ensure absolute array ordering.

Author:
vicegd
  • Constructor Details

    • HeapsortTest

      HeapsortTest()
  • 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.