chore(apply-patch) unicode scenario (#8141)
## Summary Adds a unicode scenario, and fills in files on failing scenarios to ensure directory state is unchanged, for completeness ## Testing - [x] only changes tests
This commit is contained in:
parent
70913effc3
commit
ae3793eb5d
15 changed files with 25 additions and 0 deletions
1
codex-rs/apply-patch/tests/fixtures/scenarios/005_rejects_empty_patch/expected/foo.txt
vendored
Normal file
1
codex-rs/apply-patch/tests/fixtures/scenarios/005_rejects_empty_patch/expected/foo.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
1
codex-rs/apply-patch/tests/fixtures/scenarios/005_rejects_empty_patch/input/foo.txt
vendored
Normal file
1
codex-rs/apply-patch/tests/fixtures/scenarios/005_rejects_empty_patch/input/foo.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
1
codex-rs/apply-patch/tests/fixtures/scenarios/007_rejects_missing_file_delete/input/foo.txt
vendored
Normal file
1
codex-rs/apply-patch/tests/fixtures/scenarios/007_rejects_missing_file_delete/input/foo.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
1
codex-rs/apply-patch/tests/fixtures/scenarios/008_rejects_empty_update_hunk/expected/foo.txt
vendored
Normal file
1
codex-rs/apply-patch/tests/fixtures/scenarios/008_rejects_empty_update_hunk/expected/foo.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
1
codex-rs/apply-patch/tests/fixtures/scenarios/008_rejects_empty_update_hunk/input/foo.txt
vendored
Normal file
1
codex-rs/apply-patch/tests/fixtures/scenarios/008_rejects_empty_update_hunk/input/foo.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
1
codex-rs/apply-patch/tests/fixtures/scenarios/012_delete_directory_fails/input/dir/foo.txt
vendored
Normal file
1
codex-rs/apply-patch/tests/fixtures/scenarios/012_delete_directory_fails/input/dir/foo.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
1
codex-rs/apply-patch/tests/fixtures/scenarios/013_rejects_invalid_hunk_header/input/foo.txt
vendored
Normal file
1
codex-rs/apply-patch/tests/fixtures/scenarios/013_rejects_invalid_hunk_header/input/foo.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
stable
|
||||
3
codex-rs/apply-patch/tests/fixtures/scenarios/019_unicode_simple/expected/foo.txt
vendored
Normal file
3
codex-rs/apply-patch/tests/fixtures/scenarios/019_unicode_simple/expected/foo.txt
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
line1
|
||||
naïve café ✅
|
||||
line3
|
||||
3
codex-rs/apply-patch/tests/fixtures/scenarios/019_unicode_simple/input/foo.txt
vendored
Normal file
3
codex-rs/apply-patch/tests/fixtures/scenarios/019_unicode_simple/input/foo.txt
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
line1
|
||||
naïve café
|
||||
line3
|
||||
7
codex-rs/apply-patch/tests/fixtures/scenarios/019_unicode_simple/patch.txt
vendored
Normal file
7
codex-rs/apply-patch/tests/fixtures/scenarios/019_unicode_simple/patch.txt
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
*** Begin Patch
|
||||
*** Update File: foo.txt
|
||||
@@
|
||||
line1
|
||||
-naïve café
|
||||
+naïve café ✅
|
||||
*** End Patch
|
||||
Loading…
Add table
Reference in a new issue