Skip to content

Commit 38dc093

Browse files
committed
Improved test for segment
1 parent 94b92da commit 38dc093

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
class A:
2+
def a(self):
3+
pass
4+
def calculate(self,
5+
a,
6+
b,
7+
c,
8+
d,
9+
e
10+
):
11+
pass
12+
class B:
13+
def a(self):
14+
pass
15+
def calculate(self,
16+
a,
17+
b,
18+
c,
19+
d,
20+
e
21+
):
22+
pass
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<no-train>
2+
```CEDARScript
3+
UPDATE METHOD "calculate" OFFSET 1
4+
FROM FILE "1.py"
5+
REPLACE SEGMENT
6+
STARTING AFTER LINE 0
7+
ENDING BEFORE LINE 2
8+
WITH CONTENT '''
9+
@-1:def calculate(self, line_1,
10+
@0:line_2,
11+
''';
12+
```
13+
</no-train>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class A:
2+
def a(self):
3+
pass
4+
def calculate(self,
5+
a,
6+
b,
7+
c,
8+
d,
9+
e
10+
):
11+
pass
12+
class B:
13+
def a(self):
14+
pass
15+
def calculate(self, line_1,
16+
line_2,
17+
a,
18+
b,
19+
c,
20+
d,
21+
e
22+
):
23+
pass

0 commit comments

Comments
 (0)