1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Fix the integration tests.

This commit is contained in:
Rob Rix 2017-02-09 13:35:21 -05:00
parent 4c0d51a56e
commit c07583057b
14 changed files with 1009 additions and 856 deletions

View File

@ -118,6 +118,21 @@
},
"summary": "Added '4' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"insert": {
"start": [
4,
23
],
"end": [
4,
24
]
}
},
"summary": "Added '5' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"replace": [
@ -131,33 +146,6 @@
22
]
},
{
"start": [
4,
23
],
"end": [
4,
24
]
}
]
},
"summary": "Replaced '1' with '5' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
24
],
"end": [
4,
25
]
},
{
"start": [
4,
@ -170,7 +158,22 @@
}
]
},
"summary": "Replaced '2' with '6' in the [...]int composite_literal of the 'main' function"
"summary": "Replaced '1' with '6' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
24
],
"end": [
4,
25
]
}
},
"summary": "Deleted '2' in the [...]int composite_literal of the 'main' function"
},
{
"span": {

View File

@ -135,21 +135,6 @@
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Added the 'a(b, c)' function call in the main function"
},
{
"span": {
"replace": [
@ -163,6 +148,33 @@
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a(b, c) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
@ -175,52 +187,34 @@
}
]
},
"summary": "Replaced the 'x' identifier with the 'b' identifier in the b(b, c) function call of the 'main' function"
"summary": "Replaced the 'y' identifier with the 'b' identifier in the b(b, c) function call of the 'main' function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
11
]
}
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Added the 'c(b, c)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the 'y(b, c)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
11
]
}
},
"summary": "Deleted the 'z(b, c)' function call in the main function"
"summary": "Replaced the 'z' identifier with the 'c' identifier in the c(b, c) function call of the 'main' function"
}
]
},
@ -254,21 +248,6 @@
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Added the 'x(b, c)' function call in the main function"
},
{
"span": {
"replace": [
@ -282,6 +261,33 @@
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x(b, c) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
@ -294,52 +300,34 @@
}
]
},
"summary": "Replaced the 'a' identifier with the 'y' identifier in the y(b, c) function call of the 'main' function"
"summary": "Replaced the 'b' identifier with the 'y' identifier in the y(b, c) function call of the 'main' function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
11
]
}
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Added the 'z(b, c)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the 'b(b, c)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
11
]
}
},
"summary": "Deleted the 'c(b, c)' function call in the main function"
"summary": "Replaced the 'c' identifier with the 'z' identifier in the z(b, c) function call of the 'main' function"
}
]
},

View File

@ -139,93 +139,138 @@
"channel-types.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
22
]
}
"replace": [
{
"start": [
5,
1
],
"end": [
5,
3
]
},
{
"start": [
5,
1
],
"end": [
5,
3
]
}
]
},
"summary": "Added the 'c2' type declaration in the main function"
"summary": "Replaced the 'c1' identifier with the 'c2' identifier in the 'c2' type declaration of the 'main' function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
26
]
}
"replace": [
{
"start": [
5,
16
],
"end": [
5,
19
]
},
{
"start": [
5,
16
],
"end": [
5,
22
]
}
]
},
"summary": "Added the 'c3' type declaration in the main function"
"summary": "Replaced the 'int' identifier with the 'string' identifier in the chan string channel type of the 'main' function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
24
]
}
"replace": [
{
"start": [
6,
1
],
"end": [
6,
3
]
},
{
"start": [
6,
1
],
"end": [
6,
3
]
}
]
},
"summary": "Added the 'c4' type declaration in the main function"
"summary": "Replaced the 'c2' identifier with the 'c3' identifier in the 'c3' type declaration of the 'main' function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
19
]
}
"replace": [
{
"start": [
7,
1
],
"end": [
7,
3
]
},
{
"start": [
7,
1
],
"end": [
7,
3
]
}
]
},
"summary": "Deleted the 'c1' type declaration in the main function"
"summary": "Replaced the 'c3' identifier with the 'c4' identifier in the 'c4' type declaration of the 'main' function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
26
]
}
"replace": [
{
"start": [
7,
18
],
"end": [
7,
21
]
},
{
"start": [
7,
18
],
"end": [
7,
24
]
}
]
},
"summary": "Deleted the 'c2' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
21
]
}
},
"summary": "Deleted the 'c3' type declaration in the main function"
"summary": "Replaced the 'int' identifier with the 'string' identifier in the <-chan string channel type of the 'main' function"
}
]
},
@ -262,18 +307,30 @@
"channel-types.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
19
]
}
"replace": [
{
"start": [
5,
1
],
"end": [
5,
3
]
},
{
"start": [
5,
1
],
"end": [
5,
3
]
}
]
},
"summary": "Added the 'c1' type declaration in the main function"
"summary": "Replaced the 'c2' identifier with the 'c1' identifier in the 'c1' type declaration of the 'main' function"
},
{
"span": {
@ -281,7 +338,7 @@
{
"start": [
5,
11
16
],
"end": [
5,
@ -290,17 +347,17 @@
},
{
"start": [
6,
11
5,
16
],
"end": [
6,
26
5,
19
]
}
]
},
"summary": "Replaced the 'chan string' channel type with the 'chan<- struct{}' channel type in the chan<- chan<- struct{} channel type of the 'main' function"
"summary": "Replaced the 'string' identifier with the 'int' identifier in the chan int channel type of the 'main' function"
},
{
"span": {
@ -308,17 +365,71 @@
{
"start": [
6,
11
1
],
"end": [
6,
26
3
]
},
{
"start": [
6,
1
],
"end": [
6,
3
]
}
]
},
"summary": "Replaced the 'c3' identifier with the 'c2' identifier in the 'c2' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
1
],
"end": [
7,
3
]
},
{
"start": [
7,
11
1
],
"end": [
7,
3
]
}
]
},
"summary": "Replaced the 'c4' identifier with the 'c3' identifier in the 'c3' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
18
],
"end": [
7,
24
]
},
{
"start": [
7,
18
],
"end": [
7,
@ -327,22 +438,7 @@
}
]
},
"summary": "Replaced the 'chan<- struct{}' channel type with the '<-chan int' channel type in the chan<- <-chan int channel type of the 'main' function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
24
]
}
},
"summary": "Deleted the 'c4' type declaration in the main function"
"summary": "Replaced the 'string' identifier with the 'int' identifier in the <-chan int channel type of the 'main' function"
}
]
},

View File

@ -427,21 +427,6 @@
},
"summary": "Added the 'a[1]' index expression in the main function"
},
{
"span": {
"insert": {
"start": [
5,
2
],
"end": [
5,
3
]
}
},
"summary": "Added the 'b' identifier in the main function"
},
{
"span": {
"replace": [
@ -452,49 +437,37 @@
],
"end": [
4,
2
6
]
},
{
"start": [
6,
5,
2
],
"end": [
6,
5,
3
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'c' identifier in the c[1] slice literal of the 'main' function"
"summary": "Replaced the 'z[2]' slice literal with the 'b' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
6,
4
],
"end": [
6,
5
]
}
]
"insert": {
"start": [
6,
2
],
"end": [
6,
7
]
}
},
"summary": "Replaced '2' with '1' in the c[1] slice literal of the 'main' function"
"summary": "Added the 'c[1]' slice literal in the main function"
},
{
"span": {

View File

@ -436,33 +436,84 @@
"import.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
33
]
}
"replace": [
{
"start": [
1,
27
],
"end": [
1,
37
]
},
{
"start": [
1,
27
],
"end": [
1,
32
]
}
]
},
"summary": "Added the defaultMember from \"foo\" import statement"
"summary": "Replaced the \"babirusa\" string with the \"foo\" string in the defaultMember from \"foo\" import statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
34
]
}
"replace": [
{
"start": [
2,
28
],
"end": [
2,
36
]
},
{
"start": [
2,
23
],
"end": [
2,
33
]
}
]
},
"summary": "Added the * as name from \"aardvark\" import statement"
"summary": "Replaced the \"baboon\" string with the \"aardvark\" string in the * as name from \"aardvark\" import statement"
},
{
"span": {
"replace": [
{
"start": [
2,
13
],
"end": [
2,
22
]
},
{
"start": [
2,
13
],
"end": [
2,
17
]
}
]
},
"summary": "Replaced the 'otherName' identifier with the 'name' identifier in the * as name from \"aardvark\" import statement"
},
{
"span": {
@ -524,92 +575,47 @@
},
"summary": "Added the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
50
]
}
},
"summary": "Added the defaultMember, * as name from \"alligator\" import statement"
},
{
"span": {
"replace": [
{
"start": [
1,
27
3,
1
],
"end": [
1,
37
3,
34
]
},
{
"start": [
8,
8
7,
1
],
"end": [
8,
21
7,
50
]
}
]
},
"summary": "Replaced the \"babirusa\" string with the \"arctic-tern\" string in the \"arctic-tern\" import statement"
"summary": "Replaced the { element } from \"badger\" import statement with the defaultMember, * as name from \"alligator\" import statement"
},
{
"span": {
"delete": {
"insert": {
"start": [
1,
8
],
"end": [
1,
21
]
}
},
"summary": "Deleted the 'defaultMember' identifier in the \"arctic-tern\" import statement"
},
{
"span": {
"delete": {
"start": [
2,
8,
1
],
"end": [
2,
37
8,
22
]
}
},
"summary": "Deleted the * as otherName from \"baboon\" import statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
34
]
}
},
"summary": "Deleted the { element } from \"badger\" import statement"
"summary": "Added the \"arctic-tern\" import statement"
},
{
"span": {
@ -729,33 +735,84 @@
"import.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
38
]
}
"replace": [
{
"start": [
1,
27
],
"end": [
1,
32
]
},
{
"start": [
1,
27
],
"end": [
1,
37
]
}
]
},
"summary": "Added the defaultMember from \"babirusa\" import statement"
"summary": "Replaced the \"foo\" string with the \"babirusa\" string in the defaultMember from \"babirusa\" import statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
37
]
}
"replace": [
{
"start": [
2,
23
],
"end": [
2,
33
]
},
{
"start": [
2,
28
],
"end": [
2,
36
]
}
]
},
"summary": "Added the * as otherName from \"baboon\" import statement"
"summary": "Replaced the \"aardvark\" string with the \"baboon\" string in the * as otherName from \"baboon\" import statement"
},
{
"span": {
"replace": [
{
"start": [
2,
13
],
"end": [
2,
17
]
},
{
"start": [
2,
13
],
"end": [
2,
22
]
}
]
},
"summary": "Replaced the 'name' identifier with the 'otherName' identifier in the * as otherName from \"baboon\" import statement"
},
{
"span": {
@ -817,92 +874,47 @@
},
"summary": "Added the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
50
]
}
},
"summary": "Added the defaultMember, * as element from \"barbet\" import statement"
},
{
"span": {
"replace": [
{
"start": [
1,
27
3,
1
],
"end": [
1,
32
3,
30
]
},
{
"start": [
8,
8
7,
1
],
"end": [
8,
18
7,
50
]
}
]
},
"summary": "Replaced the \"foo\" string with the \"basilisk\" string in the \"basilisk\" import statement"
"summary": "Replaced the { member } from \"ant\" import statement with the defaultMember, * as element from \"barbet\" import statement"
},
{
"span": {
"delete": {
"insert": {
"start": [
1,
8
],
"end": [
1,
21
]
}
},
"summary": "Deleted the 'defaultMember' identifier in the \"basilisk\" import statement"
},
{
"span": {
"delete": {
"start": [
2,
8,
1
],
"end": [
2,
34
8,
19
]
}
},
"summary": "Deleted the * as name from \"aardvark\" import statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
30
]
}
},
"summary": "Deleted the { member } from \"ant\" import statement"
"summary": "Added the \"basilisk\" import statement"
},
{
"span": {

View File

@ -128,33 +128,30 @@
"var-declaration.js": [
{
"span": {
"insert": {
"start": [
1,
5
],
"end": [
1,
10
]
}
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
10
]
}
]
},
"summary": "Added the 'x' variable"
},
{
"span": {
"delete": {
"start": [
1,
5
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' variable"
"summary": "Replaced the 'x' variable with the 'x' variable"
},
{
"span": {
@ -212,21 +209,6 @@
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"insert": {
"start": [
1,
5
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' variable"
},
{
"span": {
"replace": [
@ -243,16 +225,31 @@
{
"start": [
1,
8
5
],
"end": [
1,
14
6
]
}
]
},
"summary": "Replaced the 'x' var assignment with the 'y' var assignment"
"summary": "Replaced the 'x' variable with the 'x' variable"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
14
]
}
},
"summary": "Added the 'y' variable"
},
{
"span": {

View File

@ -205,21 +205,6 @@
},
"summary": "Replaced the 'a & b' binary statement with the 'a | b' binary statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'a >> b' binary statement"
},
{
"span": {
"replace": [
@ -235,17 +220,32 @@
},
{
"start": [
3,
2,
1
],
"end": [
3,
6
2,
7
]
}
]
},
"summary": "Replaced the 'a << b' binary statement with the 'a ^ b' binary statement"
"summary": "Replaced the 'a << b' binary statement with the 'a >> b' binary statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Added the 'a ^ b' binary statement"
}
]
},
@ -306,33 +306,30 @@
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
"replace": [
{
"start": [
2,
1
],
"end": [
2,
7
]
},
{
"start": [
2,
1
],
"end": [
2,
7
]
}
]
},
"summary": "Added the 'a << b' binary statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'a >> b' binary statement"
"summary": "Replaced the 'a >> b' binary statement with the 'a << b' binary statement"
},
{
"span": {

View File

@ -355,18 +355,30 @@
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
"replace": [
{
"start": [
1,
1
],
"end": [
1,
6
]
},
{
"start": [
2,
1
],
"end": [
2,
10
]
}
]
},
"summary": "Added the %q<a<b>c> string"
"summary": "Replaced the %q/b/ string with the %q<a<b>c> string"
},
{
"span": {
@ -388,12 +400,12 @@
"replace": [
{
"start": [
1,
2,
1
],
"end": [
1,
6
2,
10
]
},
{
@ -408,7 +420,7 @@
}
]
},
"summary": "Replaced the %q/b/ string with the %Q#a# string"
"summary": "Replaced the %q{d{e}f} string with the %Q#a# string"
},
{
"span": {
@ -427,30 +439,18 @@
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
10
]
},
{
"start": [
6,
1
],
"end": [
6,
10
]
}
]
"insert": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Replaced the %q{d{e}f} string with the %Q<a<b>c> string"
"summary": "Added the %Q<a<b>c> string"
},
{
"span": {
@ -579,21 +579,6 @@
},
"summary": "Added the %q{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the %/b/ string"
},
{
"span": {
"replace": [
@ -609,17 +594,32 @@
},
{
"start": [
4,
3,
1
],
"end": [
4,
6
3,
5
]
}
]
},
"summary": "Replaced the %q#a# string with the %Q/b/ string"
"summary": "Replaced the %q#a# string with the %/b/ string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q/b/ string"
},
{
"span": {

View File

@ -140,18 +140,30 @@
},
{
"span": {
"insert": {
"start": [
1,
33
],
"end": [
1,
48
]
}
"replace": [
{
"start": [
1,
26
],
"end": [
1,
33
]
},
{
"start": [
1,
33
],
"end": [
1,
48
]
}
]
},
"summary": "Added the '\"key3\": false' pair"
"summary": "Replaced the 'key2: 2' pair with the '\"key3\": false' pair"
},
{
"span": {
@ -168,21 +180,6 @@
},
"summary": "Added the ':\"symbol_key\" => 10' pair"
},
{
"span": {
"delete": {
"start": [
1,
26
],
"end": [
1,
33
]
}
},
"summary": "Deleted the 'key2: 2' pair"
},
{
"span": {
"delete": {

View File

@ -484,6 +484,93 @@
"expectedResult": {
"changes": {
"method-invocation.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'print' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'foo.bar' member access"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
6
]
},
{
"start": [
3,
1
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'print' identifier with the 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
8
]
}
},
"summary": "Deleted the 'foo.bar' member access"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
4
]
}
},
"summary": "Deleted the 'bar' identifier"
},
{
"span": {
"delete": {

View File

@ -434,6 +434,21 @@
},
"summary": "Added '0d1_234'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
24
]
}
},
"summary": "Added '0xa_bcd_ef0_123_456_789'"
},
{
"span": {
"replace": [
@ -449,32 +464,17 @@
},
{
"start": [
4,
5,
1
],
"end": [
4,
24
5,
10
]
}
]
},
"summary": "Replaced '1235' with '0xa_bcd_ef0_123_456_789'"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
10
]
}
},
"summary": "Added '0o1234567'"
"summary": "Replaced '1235' with '0o1234567'"
},
{
"span": {
@ -649,30 +649,18 @@
},
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
5
]
},
{
"start": [
2,
1
],
"end": [
2,
6
]
}
]
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Replaced '1234' with '1_235'"
"summary": "Added '1_235'"
},
{
"span": {
@ -689,47 +677,47 @@
},
"summary": "Added '0d1_235'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
24
]
}
},
"summary": "Added '0xa_bcd_ef0_123_456_788'"
},
{
"span": {
"replace": [
{
"start": [
2,
1,
1
],
"end": [
2,
6
1,
5
]
},
{
"start": [
4,
5,
1
],
"end": [
4,
24
5,
10
]
}
]
},
"summary": "Replaced '1_234' with '0xa_bcd_ef0_123_456_788'"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
10
]
}
},
"summary": "Added '0o1234576'"
"summary": "Replaced '1234' with '0o1234576'"
},
{
"span": {
@ -761,6 +749,21 @@
},
"summary": "Added '1.234_5e678_91'"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Deleted '1_234'"
},
{
"span": {
"delete": {

View File

@ -244,30 +244,18 @@
"pseudo-variables.rb": [
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
4
]
},
{
"start": [
1,
1
],
"end": [
1,
4
]
}
]
"insert": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Replaced the 'NIL' identifier with the 'nil' identifier"
"summary": "Added the 'nil' identifier"
},
{
"span": {
@ -299,6 +287,21 @@
},
"summary": "Added 'true'"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'NIL' identifier"
},
{
"span": {
"delete": {
@ -419,31 +422,34 @@
"summary": "Replaced 'false' with 'TRUE'"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
5
]
},
{
"start": [
4,
1
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced 'true' with 'FALSE'"
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added 'FALSE'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'true'"
}
]
},

View File

@ -194,74 +194,74 @@
"expectedResult": {
"changes": {
"relational-operator.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
8
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'x <=> y' binary statement with the 'x == y' binary statement"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
7
]
},
{
"start": [
2,
1
],
"end": [
2,
7
]
}
]
},
"summary": "Replaced the 'x =~ y' binary statement with the 'x != y' binary statement"
},
{
"span": {
"insert": {
"start": [
1,
3,
1
],
"end": [
1,
7
3,
8
]
}
},
"summary": "Added the 'x == y' binary statement"
},
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
8
]
},
{
"start": [
2,
1
],
"end": [
2,
7
]
}
]
},
"summary": "Replaced the 'x <=> y' binary statement with the 'x != y' binary statement"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
7
]
},
{
"start": [
3,
1
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'x =~ y' binary statement with the 'x === y' binary statement"
"summary": "Added the 'x === y' binary statement"
},
{
"span": {
@ -309,21 +309,6 @@
"expectedResult": {
"changes": {
"relational-operator.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'x <=> y' binary statement"
},
{
"span": {
"replace": [
@ -337,6 +322,33 @@
7
]
},
{
"start": [
1,
1
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced the 'x == y' binary statement with the 'x <=> y' binary statement"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
7
]
},
{
"start": [
2,
@ -349,7 +361,7 @@
}
]
},
"summary": "Replaced the 'x == y' binary statement with the 'x =~ y' binary statement"
"summary": "Replaced the 'x != y' binary statement with the 'x =~ y' binary statement"
},
{
"span": {
@ -366,21 +378,6 @@
},
"summary": "Added the 'x' assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'x != y' binary statement"
},
{
"span": {
"delete": {

View File

@ -209,21 +209,6 @@
},
"summary": "Added the ':foo' symbol"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the ':'foo'' symbol"
},
{
"span": {
"replace": [
@ -237,6 +222,33 @@
5
]
},
{
"start": [
2,
1
],
"end": [
2,
7
]
}
]
},
"summary": "Replaced the ':bar' symbol with the ':'foo'' symbol"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
7
]
},
{
"start": [
3,
@ -249,22 +261,7 @@
}
]
},
"summary": "Replaced the ':bar' symbol with the ':\"foo\"' symbol"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the ':'bar'' symbol"
"summary": "Replaced the ':'bar'' symbol with the ':\"foo\"' symbol"
},
{
"span": {