Class DirectInsertionTest

java.lang.Object
topics.sorting.insertion.DirectInsertionTest

class DirectInsertionTest extends Object

Validation Suite for Direct Insertion Sort

Verifies the shifting logic, structural integrity, and in-place stability of the Direct Insertion Sort algorithm using JUnit 5.

Author:
vicegd
  • Constructor Details

    • DirectInsertionTest

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