d failed)"
        return 1
    fi
}</code></pre>
                    </div>
                    
                    <div class="example-card">
                        <h4>Unit Test Structure</h4>
                        <pre><code class="language-cpp">// Template for new unit test
#include <catch2/catch.hpp>

TEST_CASE("New functionality test", "[category]") {
    // Setup
    // ... test data preparation
    
    SECTION("Test case description") {
        // Test execution
        // ... your test logic
