Problem
Ten enclosure middleware cases are currently skipped when a value itself starts and ends with braces or quotes. Those cases are ambiguous only if the test tries to infer whether a wrapper was added from the final string; the middleware's expected behavior can still be asserted directly.
The skips leave gaps in both directions:
- removal should record and strip enclosure-like boundary characters consistently, even when the test did not add an outer wrapper; and
- addition with
no-enclosing should leave an enclosure-like value exactly unchanged rather than being skipped because it resembles wrapped output.
Proposed coverage
Replace the skip helper with explicit expected-value and metadata assertions for removal, and compare exact output for no-enclosing addition. This turns the complete enclosure matrix into executable regression coverage without changing production behavior.
Problem
Ten enclosure middleware cases are currently skipped when a value itself starts and ends with braces or quotes. Those cases are ambiguous only if the test tries to infer whether a wrapper was added from the final string; the middleware's expected behavior can still be asserted directly.
The skips leave gaps in both directions:
no-enclosingshould leave an enclosure-like value exactly unchanged rather than being skipped because it resembles wrapped output.Proposed coverage
Replace the skip helper with explicit expected-value and metadata assertions for removal, and compare exact output for
no-enclosingaddition. This turns the complete enclosure matrix into executable regression coverage without changing production behavior.