Class StringInterleavingTest

java.lang.Object
topics.dynamic.stringinterleaving.StringInterleavingTest

@DisplayName("String Interleaving (Dynamic Programming)") class StringInterleavingTest extends Object

Validation Suite for DP String Interleaving

Proves that Dynamic Programming flawlessly handles sequential, mixed, and highly ambiguous strings that break the Greedy algorithm.

Author:
vicegd
  • Constructor Details

    • StringInterleavingTest

      StringInterleavingTest()
  • Method Details

    • setup

      @BeforeAll static void setup()
    • shouldVerifySequentialInterleaving

      @Test @DisplayName("Should successfully verify a sequential interleaving") void shouldVerifySequentialInterleaving()
    • shouldVerifyMixedInterleaving

      @Test @DisplayName("Should successfully verify a mixed interleaving") void shouldVerifyMixedInterleaving()
    • shouldRejectInvalidInterleaving

      @Test @DisplayName("Should correctly reject an invalid character arrangement") void shouldRejectInvalidInterleaving()
    • shouldSolveTheGreedyTrap

      @Test @DisplayName("Should successfully solve the ambiguous case (The Greedy Trap)") void shouldSolveTheGreedyTrap()