Skip to content

Commit 4656784

Browse files
committed
Minor changes in tests
1 parent b4b6bf2 commit 4656784

File tree

15 files changed

+76
-19
lines changed

15 files changed

+76
-19
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<no-train>
2+
```CEDARScript
3+
UPDATE FUNCTION "calculate" FROM FILE "math_ops.py"
4+
REPLACE PARAMETERS
5+
WITH CONTENT '''
6+
@0:a: float, b: float, operation: str = "add"
7+
'''
8+
```
9+
</no-train>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Calculator:
2+
pass
3+
def calculate(a: float, b: float, operation: str = "add"):
4+
return a + b
5+
def helper():
6+
pass
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Calculator:
2+
pass
3+
def calculate(
4+
a,
5+
b
6+
):
7+
return a + b
8+
def helper():
9+
pass

tests/corpus/update.identifier.move.whole.1/chat.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<no-train>
22
```CEDARScript
3-
-- A02 becomes inner of b
3+
-- A02 becomes local to b
44
UPDATE FUNCTION "b" FROM FILE "main.py"
55
MOVE WHOLE INSERT BEFORE CLASS "A02"
66
RELATIVE INDENTATION -1;
File renamed without changes.

tests/corpus/x.update.identifier.move.whole.2/expected.main.py renamed to tests/corpus/update.identifier.move.whole.2/expected.main.py

File renamed without changes.
File renamed without changes.

tests/corpus/update.identifier.replace.line/chat.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/corpus/update.identifier.replace.line/expected.main.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/corpus/update.identifier.replace.line/main.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)