Skip to content

Commit 139f0ea

Browse files
More function tests
1 parent e1f66c5 commit 139f0ea

File tree

7 files changed

+124
-14
lines changed

7 files changed

+124
-14
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
const foo = function bar() {};
2+
---
3+
4+
[#1 Content] = 0:6-0:9
5+
>---<
6+
0| const foo = function bar() {};
7+
8+
[#1 Removal] = 0:0-0:12
9+
>------------<
10+
0| const foo = function bar() {};
11+
12+
[#1 Leading delimiter] = 0:5-0:6
13+
>-<
14+
0| const foo = function bar() {};
15+
16+
[#1 Trailing delimiter] = 0:9-0:10
17+
>-<
18+
0| const foo = function bar() {};
19+
20+
[#1 Domain] = 0:0-0:30
21+
>------------------------------<
22+
0| const foo = function bar() {};
23+
24+
[#1 Insertion delimiter] = " "
25+
26+
27+
[#2 Content] =
28+
[#2 Removal] = 0:21-0:24
29+
>---<
30+
0| const foo = function bar() {};
31+
32+
[#2 Leading delimiter] = 0:20-0:21
33+
>-<
34+
0| const foo = function bar() {};
35+
36+
[#2 Domain] = 0:12-0:29
37+
>-----------------<
38+
0| const foo = function bar() {};
39+
40+
[#2 Insertion delimiter] = " "
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
const foo = function *bar() {};
2+
---
3+
4+
[#1 Content] = 0:6-0:9
5+
>---<
6+
0| const foo = function *bar() {};
7+
8+
[#1 Removal] = 0:0-0:12
9+
>------------<
10+
0| const foo = function *bar() {};
11+
12+
[#1 Leading delimiter] = 0:5-0:6
13+
>-<
14+
0| const foo = function *bar() {};
15+
16+
[#1 Trailing delimiter] = 0:9-0:10
17+
>-<
18+
0| const foo = function *bar() {};
19+
20+
[#1 Domain] = 0:0-0:31
21+
>-------------------------------<
22+
0| const foo = function *bar() {};
23+
24+
[#1 Insertion delimiter] = " "
25+
26+
27+
[#2 Content] =
28+
[#2 Removal] = 0:22-0:25
29+
>---<
30+
0| const foo = function *bar() {};
31+
32+
[#2 Domain] = 0:12-0:30
33+
>------------------<
34+
0| const foo = function *bar() {};
35+
36+
[#2 Insertion delimiter] = " "
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
export default function() {}
1+
const foo = function bar() {};
22
---
33

44
[Content] =
5-
[Removal] =
6-
[Domain] = 0:0-0:28
7-
>----------------------------<
8-
0| export default function() {}
5+
[Domain] = 0:12-0:29
6+
>-----------------<
7+
0| const foo = function bar() {};
8+
9+
[Removal] = 0:11-0:29
10+
>------------------<
11+
0| const foo = function bar() {};
12+
13+
[Leading delimiter] = 0:11-0:12
14+
>-<
15+
0| const foo = function bar() {};
916

1017
[Insertion delimiter] = "\n\n"
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
export default function *() {}
1+
const foo = function *bar() {};
22
---
33

44
[Content] =
5-
[Removal] =
6-
[Domain] = 0:0-0:30
7-
>------------------------------<
8-
0| export default function *() {}
5+
[Domain] = 0:12-0:30
6+
>------------------<
7+
0| const foo = function *bar() {};
8+
9+
[Removal] = 0:11-0:30
10+
>-------------------<
11+
0| const foo = function *bar() {};
12+
13+
[Leading delimiter] = 0:11-0:12
14+
>-<
15+
0| const foo = function *bar() {};
916

1017
[Insertion delimiter] = "\n\n"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export default () => {};
1+
export default function() {}
22
---
33

44
[Content] =
55
[Removal] =
6-
[Domain] = 0:0-0:24
7-
>------------------------<
8-
0| export default () => {};
6+
[Domain] = 0:0-0:28
7+
>----------------------------<
8+
0| export default function() {}
99

1010
[Insertion delimiter] = "\n\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export default function *() {}
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:30
7+
>------------------------------<
8+
0| export default function *() {}
9+
10+
[Insertion delimiter] = "\n\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export default () => {};
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:24
7+
>------------------------<
8+
0| export default () => {};
9+
10+
[Insertion delimiter] = "\n\n"

0 commit comments

Comments
 (0)