Files
codex/codex-rs/apply-patch/tests/fixtures/scenarios
Thibault Sottiaux 771f1ca6ab fix: accept whitespace-padded patch markers (#8746)
Trim whitespace when validating '*** Begin Patch'/'*** End Patch'
markers in codex-apply-patch so padded marker lines parse as intended,
and add regression coverage (unit + fixture scenario); this avoids
apply_patch failures when models include extra spacing. Tested with
cargo test -p codex-apply-patch.
2026-01-05 17:41:23 -08:00
..

Overview

This directory is a collection of end to end tests for the apply-patch specification, meant to be easily portable to other languages or platforms.

Specification

Each test case is one directory, composed of input state (input/), the patch operation (patch.txt), and the expected final state (expected/). This structure is designed to keep tests simple (i.e. test exactly one patch at a time) while still providing enough flexibility to test any given operation across files.

Here's what this would look like for a simple test apply-patch test case to create a new file:

001_add/
  input/
    foo.md
  expected/
    foo.md
    bar.md
  patch.txt