From 105b57566b8f3a8ea50209907364d4f375131ac8 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 14 Oct 2015 14:40:47 -0400 Subject: [PATCH] Replace the JSON fixtures with much cooler JSON fixtures. --- prototype/doubt-json/Fixtures/a.json | 481 ++++++++++++++++++++++++++- prototype/doubt-json/Fixtures/b.json | 393 +++++++++++++++++++++- 2 files changed, 870 insertions(+), 4 deletions(-) diff --git a/prototype/doubt-json/Fixtures/a.json b/prototype/doubt-json/Fixtures/a.json index 460b5331d..136ab3fec 100644 --- a/prototype/doubt-json/Fixtures/a.json +++ b/prototype/doubt-json/Fixtures/a.json @@ -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": [ + + ] + } + }, + [ + + ] + ] + ] + ] + } +] diff --git a/prototype/doubt-json/Fixtures/b.json b/prototype/doubt-json/Fixtures/b.json index d036eb6be..d72eceb71 100644 --- a/prototype/doubt-json/Fixtures/b.json +++ b/prototype/doubt-json/Fixtures/b.json @@ -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": [ + + ] + }, + [ + + ] + ] + ] + ] + } +]