1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +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" "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": { "span": {
"replace": [ "replace": [
@ -131,33 +146,6 @@
22 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": [ "start": [
4, 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": { "span": {

View File

@ -135,21 +135,6 @@
"expectedResult": { "expectedResult": {
"changes": { "changes": {
"call-expressions.go": [ "call-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Added the 'a(b, c)' function call in the main function"
},
{ {
"span": { "span": {
"replace": [ "replace": [
@ -163,6 +148,33 @@
2 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": [ "start": [
5, 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": { "span": {
"insert": { "replace": [
"start": [ {
6, "start": [
1 6,
], 1
"end": [ ],
6, "end": [
11 6,
] 2
} ]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
}, },
"summary": "Added the 'c(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"
},
{
"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"
} }
] ]
}, },
@ -254,21 +248,6 @@
"expectedResult": { "expectedResult": {
"changes": { "changes": {
"call-expressions.go": [ "call-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Added the 'x(b, c)' function call in the main function"
},
{ {
"span": { "span": {
"replace": [ "replace": [
@ -282,6 +261,33 @@
2 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": [ "start": [
5, 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": { "span": {
"insert": { "replace": [
"start": [ {
6, "start": [
1 6,
], 1
"end": [ ],
6, "end": [
11 6,
] 2
} ]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
}, },
"summary": "Added the 'z(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"
},
{
"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"
} }
] ]
}, },

View File

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

View File

@ -427,21 +427,6 @@
}, },
"summary": "Added the 'a[1]' index expression in the main function" "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": { "span": {
"replace": [ "replace": [
@ -452,49 +437,37 @@
], ],
"end": [ "end": [
4, 4,
2 6
] ]
}, },
{ {
"start": [ "start": [
6, 5,
2 2
], ],
"end": [ "end": [
6, 5,
3 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": { "span": {
"replace": [ "insert": {
{ "start": [
"start": [ 6,
4, 2
4 ],
], "end": [
"end": [ 6,
4, 7
5 ]
] }
},
{
"start": [
6,
4
],
"end": [
6,
5
]
}
]
}, },
"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": { "span": {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -484,6 +484,93 @@
"expectedResult": { "expectedResult": {
"changes": { "changes": {
"method-invocation.rb": [ "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": { "span": {
"delete": { "delete": {

View File

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

View File

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

View File

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

View File

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