mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
scenario cleanup
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
foo
|
||||
bar
|
||||
one
|
||||
bar
|
||||
bar
|
||||
two
|
||||
@@ -0,0 +1,6 @@
|
||||
foo
|
||||
bar
|
||||
bar
|
||||
bar
|
||||
bar
|
||||
baz
|
||||
11
codex-rs/apply-patch/tests/fixtures/scenarios/026_multiple_context_lines_overlap/patch.txt
vendored
Normal file
11
codex-rs/apply-patch/tests/fixtures/scenarios/026_multiple_context_lines_overlap/patch.txt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
*** Begin Patch
|
||||
*** Update File: foo.txt
|
||||
@@ foo
|
||||
@@ bar
|
||||
-bar
|
||||
+one
|
||||
@@ bar
|
||||
@@ bar
|
||||
-baz
|
||||
+two
|
||||
*** End Patch
|
||||
@@ -1,4 +1,4 @@
|
||||
class Foo:
|
||||
def foo():
|
||||
def foo(self):
|
||||
# to_remove
|
||||
pass
|
||||
@@ -1,10 +1,10 @@
|
||||
class BaseClass:
|
||||
def method():
|
||||
def method(self):
|
||||
# to_add
|
||||
pass
|
||||
|
||||
|
||||
class OtherClass:
|
||||
def method():
|
||||
def method(self):
|
||||
# untouched
|
||||
pass
|
||||
@@ -1,4 +1,4 @@
|
||||
class Foo:
|
||||
def foo():
|
||||
def foo(self):
|
||||
# to_remove
|
||||
pass
|
||||
@@ -1,10 +1,10 @@
|
||||
class BaseClass:
|
||||
def method():
|
||||
def method(self):
|
||||
# to_add
|
||||
pass
|
||||
|
||||
|
||||
class OtherClass:
|
||||
def method():
|
||||
def method(self):
|
||||
# untouched
|
||||
pass
|
||||
@@ -1,12 +1,12 @@
|
||||
*** Begin Patch
|
||||
*** Update File: success.py
|
||||
@@ class BaseClass:
|
||||
@@ def method():
|
||||
@@ def method(self):
|
||||
- # to_remove
|
||||
+ # to_add
|
||||
*** Update File: failure.py
|
||||
@@ class Foo:
|
||||
@@ def missing():
|
||||
@@ def missing(self):
|
||||
- # to_remove
|
||||
+ # to_add
|
||||
*** End Patch
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo:
|
||||
# this is a comment
|
||||
def foo(self):
|
||||
# to_add
|
||||
pass
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo:
|
||||
# this is a comment
|
||||
def foo(self):
|
||||
# to_remove
|
||||
pass
|
||||
7
codex-rs/apply-patch/tests/fixtures/scenarios/028_multiple_context_lines_skipped/patch.txt
vendored
Normal file
7
codex-rs/apply-patch/tests/fixtures/scenarios/028_multiple_context_lines_skipped/patch.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
*** Begin Patch
|
||||
*** Update File: skip.py
|
||||
@@ class Foo:
|
||||
@@ def foo(self):
|
||||
- # to_remove
|
||||
+ # to_add
|
||||
*** End Patch
|
||||
Reference in New Issue
Block a user