1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Replace the JSON fixtures with much cooler JSON fixtures.

This commit is contained in:
Rob Rix 2015-10-14 14:40:47 -04:00
parent ed004ca4c1
commit 105b57566b
2 changed files with 870 additions and 4 deletions

View File

@ -1,3 +1,478 @@
{
"foo": "bar"
}
[
[{
"literal": {
"source": "Algorithm",
"categories": [
]
}
},
[
[{
"literal": {
"source": "Recursive",
"categories": [
]
}
},
[
]
],
[{
"literal": {
"source": "ByKey",
"categories": [
]
}
},
[
]
], {
"insert": [{
"literal": {
"source": "ByIndex",
"categories": [
]
}
},
[
]
]
}, {
"literal": {
"source": "mark",
"categories": [
]
}
},
[{
"literal": {
"source": "map(_:)",
"categories": [
]
}
},
[
]
]
]
], {
"insert": [{
"literal": {
"source": "FreeAlgorithm",
"categories": [
]
}
},
[
[{
"literal": {
"source": "Pure",
"categories": [
]
}
},
[
]
],
[{
"literal": {
"source": "Roll",
"categories": [
]
}
},
[
]
],
[{
"literal": {
"source": "analysis(ifPure:ifRoll:)",
"categories": [
]
}
},
[
]
], {
"literal": {
"source": "mark",
"categories": [
]
}
},
[{
"literal": {
"source": "map(_:)",
"categories": [
]
}
},
[
]
], {
"literal": {
"source": "mark",
"categories": [
]
}
},
[{
"literal": {
"source": "flatMap(_:)",
"categories": [
]
}
},
[
]
],
[{
"literal": {
"source": "evaluate(_:recur:)",
"categories": [
]
}
},
[
]
]
]
]
}, {
"replace": {
"before": {
"literal": {
"source": "mark",
"categories": [
]
}
},
"after": [{
"literal": {
"source": "FreeAlgorithm",
"categories": [
]
}
},
[
[{
"literal": {
"source": "evaluate(_:)",
"categories": [
]
}
},
[
]
]
]
]
}
}, {
"delete": [{
"literal": {
"source": "Algorithm",
"categories": [
]
}
},
[
[{
"literal": {
"source": "evaluate(_:)",
"categories": [
]
}
},
[
[{
"literal": {
"source": "copy(_:)",
"categories": [
]
}
},
[
]
]
]
]
]
]
}, {
"delete": [{
"literal": {
"source": "FreeAlgorithm",
"categories": [
]
}
},
[
[{
"literal": {
"source": "Pure",
"categories": [
]
}
},
[
]
],
[{
"literal": {
"source": "Roll",
"categories": [
]
}
},
[
]
],
[{
"literal": {
"source": "analysis(ifPure:ifRoll:)",
"categories": [
]
}
},
[
]
], {
"literal": {
"source": "mark",
"categories": [
]
}
},
[{
"literal": {
"source": "map(_:)",
"categories": [
]
}
},
[
]
], {
"literal": {
"source": "mark",
"categories": [
]
}
},
[{
"literal": {
"source": "flatMap(_:)",
"categories": [
]
}
},
[
]
],
[{
"literal": {
"source": "evaluate(_:)",
"categories": [
]
}
},
[
]
]
]
]
}, {
"delete": [{
"literal": {
"source": "FreeAlgorithm",
"categories": [
]
}
},
[
[{
"literal": {
"source": "evaluate()",
"categories": [
]
}
},
[
]
]
]
]
},
[{
"literal": {
"source": "FreeConvertible",
"categories": [
]
}
},
[
[{
"literal": {
"source": "init(free:)",
"categories": [
]
}
},
[
]
], {
"literal": {
"source": "free",
"categories": [
]
}
}
]
],
[{
"literal": {
"source": "Free",
"categories": [
]
}
},
[
[{
"literal": {
"source": "init(free:)",
"categories": [
]
}
},
[
]
], {
"literal": {
"source": "free",
"categories": [
]
}
}
]
],
[{
"literal": {
"source": "FreeAlgorithm",
"categories": [
]
}
},
[
[{
"literal": {
"source": "init(_:_:)",
"categories": [
]
}
},
[
]
], {
"insert": [{
"literal": {
"source": "evaluate(_:)",
"categories": [
]
}
},
[
]
]
}
]
], {
"insert": [{
"literal": {
"source": "FreeAlgorithm",
"categories": [
]
}
},
[
[{
"literal": {
"source": "evaluate()",
"categories": [
]
}
},
[
]
]
]
]
}
]

View File

@ -1 +1,392 @@
{"foo": "baz"}
[
[{
"source": "Algorithm",
"categories": [
]
},
[
[{
"source": "Recursive",
"categories": [
]
},
[
]
],
[{
"source": "ByKey",
"categories": [
]
},
[
]
], {
"insert": [{
"source": "ByIndex",
"categories": [
]
},
[
]
]
}, {
"source": "mark",
"categories": [
]
},
[{
"source": "map(_:)",
"categories": [
]
},
[
]
]
]
], {
"insert": [{
"source": "FreeAlgorithm",
"categories": [
]
},
[
[{
"source": "Pure",
"categories": [
]
},
[
]
],
[{
"source": "Roll",
"categories": [
]
},
[
]
],
[{
"source": "analysis(ifPure:ifRoll:)",
"categories": [
]
},
[
]
], {
"source": "mark",
"categories": [
]
},
[{
"source": "map(_:)",
"categories": [
]
},
[
]
], {
"source": "mark",
"categories": [
]
},
[{
"source": "flatMap(_:)",
"categories": [
]
},
[
]
],
[{
"source": "evaluate(_:recur:)",
"categories": [
]
},
[
]
]
]
]
}, {
"replace": {
"before": {
"source": "mark",
"categories": [
]
},
"after": [{
"source": "FreeAlgorithm",
"categories": [
]
},
[
[{
"source": "evaluate(_:)",
"categories": [
]
},
[
]
]
]
]
}
}, {
"delete": [{
"source": "Algorithm",
"categories": [
]
},
[
[{
"source": "evaluate(_:)",
"categories": [
]
},
[
[{
"source": "copy(_:)",
"categories": [
]
},
[
]
]
]
]
]
]
}, {
"delete": [{
"source": "FreeAlgorithm",
"categories": [
]
},
[
[{
"source": "Pure",
"categories": [
]
},
[
]
],
[{
"source": "Roll",
"categories": [
]
},
[
]
],
[{
"source": "analysis(ifPure:ifRoll:)",
"categories": [
]
},
[
]
], {
"source": "mark",
"categories": [
]
},
[{
"source": "map(_:)",
"categories": [
]
},
[
]
], {
"source": "mark",
"categories": [
]
},
[{
"source": "flatMap(_:)",
"categories": [
]
},
[
]
],
[{
"source": "evaluate(_:)",
"categories": [
]
},
[
]
]
]
]
}, {
"delete": [{
"source": "FreeAlgorithm",
"categories": [
]
},
[
[{
"source": "evaluate()",
"categories": [
]
},
[
]
]
]
]
},
[{
"source": "FreeConvertible",
"categories": [
]
},
[
[{
"source": "init(free:)",
"categories": [
]
},
[
]
], {
"source": "free",
"categories": [
]
}
]
],
[{
"source": "Free",
"categories": [
]
},
[
[{
"source": "init(free:)",
"categories": [
]
},
[
]
], {
"source": "free",
"categories": [
]
}
]
],
[{
"source": "FreeAlgorithm",
"categories": [
]
},
[
[{
"source": "init(_:_:)",
"categories": [
]
},
[
]
], {
"insert": [{
"source": "evaluate(_:)",
"categories": [
]
},
[
]
]
}
]
], {
"insert": [{
"source": "FreeAlgorithm",
"categories": [
]
},
[
[{
"source": "evaluate()",
"categories": [
]
},
[
]
]
]
]
}
]