From 470b1fab1f9d99d6c85f479e28ea1c424e671e0a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 11 Jan 2025 11:30:27 +0000 Subject: Create separate config file for examples --- examples/00-missing-main/shed-examples.json5 | 9 +++++++++ examples/00-missing-main/shed.json5 | 6 ------ examples/01-true/shed-examples.json5 | 9 +++++++++ examples/01-true/shed.json5 | 6 ------ examples/02-hello-world/shed-examples.json5 | 9 +++++++++ examples/02-hello-world/shed.json5 | 6 ------ examples/03-val/shed-examples.json5 | 9 +++++++++ examples/03-val/shed.json5 | 6 ------ examples/04-val-as-namespace-statement/shed-examples.json5 | 9 +++++++++ examples/04-val-as-namespace-statement/shed.json5 | 6 ------ examples/05-string-add/shed-examples.json5 | 9 +++++++++ examples/05-string-add/shed.json5 | 6 ------ examples/06-if/shed-examples.json5 | 9 +++++++++ examples/06-if/shed.json5 | 6 ------ examples/07-mutual-recursion/shed-examples.json5 | 9 +++++++++ examples/07-mutual-recursion/shed.json5 | 6 ------ examples/08-blocks/shed-examples.json5 | 9 +++++++++ examples/08-blocks/shed.json5 | 6 ------ examples/09-var/shed-examples.json5 | 9 +++++++++ examples/09-var/shed.json5 | 6 ------ examples/10-while/shed-examples.json5 | 9 +++++++++ examples/10-while/shed.json5 | 6 ------ examples/11-tuples/shed-examples.json5 | 9 +++++++++ examples/11-tuples/shed.json5 | 6 ------ examples/12-named-args/shed-examples.json5 | 9 +++++++++ examples/12-named-args/shed.json5 | 6 ------ examples/13-target-ignore/shed-examples.json5 | 9 +++++++++ examples/13-target-ignore/shed.json5 | 6 ------ examples/14-structs/shed-examples.json5 | 9 +++++++++ examples/14-structs/shed.json5 | 6 ------ examples/15-struct-hoisting/shed-examples.json5 | 9 +++++++++ examples/15-struct-hoisting/shed.json5 | 6 ------ examples/16-struct-positional-fields/shed-examples.json5 | 9 +++++++++ examples/16-struct-positional-fields/shed.json5 | 6 ------ examples/17-sums/shed-examples.json5 | 9 +++++++++ examples/17-sums/shed.json5 | 6 ------ examples/18-import/shed-examples.json5 | 9 +++++++++ examples/18-import/shed.json5 | 6 ------ examples/19-function-expression/shed-examples.json5 | 9 +++++++++ examples/19-function-expression/shed.json5 | 6 ------ .../20-function-expression-infer-return-type/shed-examples.json5 | 9 +++++++++ examples/20-function-expression-infer-return-type/shed.json5 | 6 ------ .../21-function-expression-infer-param-type/shed-examples.json5 | 9 +++++++++ examples/21-function-expression-infer-param-type/shed.json5 | 6 ------ examples/22-effect-resume/shed-examples.json5 | 9 +++++++++ examples/22-effect-resume/shed.json5 | 6 ------ examples/23-effect-resume-with-value/shed-examples.json5 | 9 +++++++++ examples/23-effect-resume-with-value/shed.json5 | 6 ------ examples/24-effect-with-state/shed-examples.json5 | 9 +++++++++ examples/24-effect-with-state/shed.json5 | 6 ------ examples/25-effect-handler-pop/shed-examples.json5 | 9 +++++++++ examples/25-effect-handler-pop/shed.json5 | 6 ------ examples/26-effect-handler-pop-on-return/shed-examples.json5 | 9 +++++++++ examples/26-effect-handler-pop-on-return/shed.json5 | 6 ------ examples/27-effect-handler-nested/shed-examples.json5 | 9 +++++++++ examples/27-effect-handler-nested/shed.json5 | 6 ------ examples/28-effect-in-handler/shed-examples.json5 | 9 +++++++++ examples/28-effect-in-handler/shed.json5 | 6 ------ examples/29-effect-break/shed-examples.json5 | 9 +++++++++ examples/29-effect-break/shed.json5 | 6 ------ examples/30-generic-structs/shed-examples.json5 | 9 +++++++++ examples/30-generic-structs/shed.json5 | 6 ------ examples/31-generic-sums/shed-examples.json5 | 9 +++++++++ examples/31-generic-sums/shed.json5 | 6 ------ .../shed-examples.json5 | 9 +++++++++ .../32-generic-structs-and-sums-inferred-type-args/shed.json5 | 6 ------ examples/33-generic-functions/shed-examples.json5 | 9 +++++++++ examples/33-generic-functions/shed.json5 | 6 ------ examples/34-generic-effects/shed-examples.json5 | 9 +++++++++ examples/34-generic-effects/shed.json5 | 6 ------ examples/35-struct-methods/shed-examples.json5 | 9 +++++++++ examples/35-struct-methods/shed.json5 | 6 ------ examples/36-struct-method-references/shed-examples.json5 | 9 +++++++++ examples/36-struct-method-references/shed.json5 | 6 ------ examples/37-generic-struct-methods/shed-examples.json5 | 9 +++++++++ examples/37-generic-struct-methods/shed.json5 | 6 ------ 76 files changed, 342 insertions(+), 228 deletions(-) create mode 100644 examples/00-missing-main/shed-examples.json5 create mode 100644 examples/01-true/shed-examples.json5 create mode 100644 examples/02-hello-world/shed-examples.json5 create mode 100644 examples/03-val/shed-examples.json5 create mode 100644 examples/04-val-as-namespace-statement/shed-examples.json5 create mode 100644 examples/05-string-add/shed-examples.json5 create mode 100644 examples/06-if/shed-examples.json5 create mode 100644 examples/07-mutual-recursion/shed-examples.json5 create mode 100644 examples/08-blocks/shed-examples.json5 create mode 100644 examples/09-var/shed-examples.json5 create mode 100644 examples/10-while/shed-examples.json5 create mode 100644 examples/11-tuples/shed-examples.json5 create mode 100644 examples/12-named-args/shed-examples.json5 create mode 100644 examples/13-target-ignore/shed-examples.json5 create mode 100644 examples/14-structs/shed-examples.json5 create mode 100644 examples/15-struct-hoisting/shed-examples.json5 create mode 100644 examples/16-struct-positional-fields/shed-examples.json5 create mode 100644 examples/17-sums/shed-examples.json5 create mode 100644 examples/18-import/shed-examples.json5 create mode 100644 examples/19-function-expression/shed-examples.json5 create mode 100644 examples/20-function-expression-infer-return-type/shed-examples.json5 create mode 100644 examples/21-function-expression-infer-param-type/shed-examples.json5 create mode 100644 examples/22-effect-resume/shed-examples.json5 create mode 100644 examples/23-effect-resume-with-value/shed-examples.json5 create mode 100644 examples/24-effect-with-state/shed-examples.json5 create mode 100644 examples/25-effect-handler-pop/shed-examples.json5 create mode 100644 examples/26-effect-handler-pop-on-return/shed-examples.json5 create mode 100644 examples/27-effect-handler-nested/shed-examples.json5 create mode 100644 examples/28-effect-in-handler/shed-examples.json5 create mode 100644 examples/29-effect-break/shed-examples.json5 create mode 100644 examples/30-generic-structs/shed-examples.json5 create mode 100644 examples/31-generic-sums/shed-examples.json5 create mode 100644 examples/32-generic-structs-and-sums-inferred-type-args/shed-examples.json5 create mode 100644 examples/33-generic-functions/shed-examples.json5 create mode 100644 examples/34-generic-effects/shed-examples.json5 create mode 100644 examples/35-struct-methods/shed-examples.json5 create mode 100644 examples/36-struct-method-references/shed-examples.json5 create mode 100644 examples/37-generic-struct-methods/shed-examples.json5 (limited to 'examples') diff --git a/examples/00-missing-main/shed-examples.json5 b/examples/00-missing-main/shed-examples.json5 new file mode 100644 index 00000000..6b804ef7 --- /dev/null +++ b/examples/00-missing-main/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "true", + expectedError: "Namespace True has no field main", + }, + ], +} diff --git a/examples/00-missing-main/shed.json5 b/examples/00-missing-main/shed.json5 index f7af8927..9bb5f429 100644 --- a/examples/00-missing-main/shed.json5 +++ b/examples/00-missing-main/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "True", }, ], - examples: [ - { - bin: "true", - expectedError: "Namespace True has no field main", - }, - ], } diff --git a/examples/01-true/shed-examples.json5 b/examples/01-true/shed-examples.json5 new file mode 100644 index 00000000..1c5d3886 --- /dev/null +++ b/examples/01-true/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "true", + expectedOutput: "", + }, + ], +} diff --git a/examples/01-true/shed.json5 b/examples/01-true/shed.json5 index a6d9b992..9bb5f429 100644 --- a/examples/01-true/shed.json5 +++ b/examples/01-true/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "True", }, ], - examples: [ - { - bin: "true", - expectedOutput: "", - }, - ], } diff --git a/examples/02-hello-world/shed-examples.json5 b/examples/02-hello-world/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/02-hello-world/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/02-hello-world/shed.json5 b/examples/02-hello-world/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/02-hello-world/shed.json5 +++ b/examples/02-hello-world/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/03-val/shed-examples.json5 b/examples/03-val/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/03-val/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/03-val/shed.json5 b/examples/03-val/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/03-val/shed.json5 +++ b/examples/03-val/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/04-val-as-namespace-statement/shed-examples.json5 b/examples/04-val-as-namespace-statement/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/04-val-as-namespace-statement/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/04-val-as-namespace-statement/shed.json5 b/examples/04-val-as-namespace-statement/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/04-val-as-namespace-statement/shed.json5 +++ b/examples/04-val-as-namespace-statement/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/05-string-add/shed-examples.json5 b/examples/05-string-add/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/05-string-add/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/05-string-add/shed.json5 b/examples/05-string-add/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/05-string-add/shed.json5 +++ b/examples/05-string-add/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/06-if/shed-examples.json5 b/examples/06-if/shed-examples.json5 new file mode 100644 index 00000000..3ca518d7 --- /dev/null +++ b/examples/06-if/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "counting", + expectedOutput: "one\ntwo\nmany", + }, + ], +} diff --git a/examples/06-if/shed.json5 b/examples/06-if/shed.json5 index bf2e41bc..68d4287c 100644 --- a/examples/06-if/shed.json5 +++ b/examples/06-if/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "Counting", }, ], - examples: [ - { - bin: "counting", - expectedOutput: "one\ntwo\nmany", - }, - ], } diff --git a/examples/07-mutual-recursion/shed-examples.json5 b/examples/07-mutual-recursion/shed-examples.json5 new file mode 100644 index 00000000..b25c64d7 --- /dev/null +++ b/examples/07-mutual-recursion/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "mutual-recursion", + expectedOutput: "ababa", + }, + ], +} diff --git a/examples/07-mutual-recursion/shed.json5 b/examples/07-mutual-recursion/shed.json5 index bc0776a5..06ce05ca 100644 --- a/examples/07-mutual-recursion/shed.json5 +++ b/examples/07-mutual-recursion/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "MutualRecursion", }, ], - examples: [ - { - bin: "mutual-recursion", - expectedOutput: "ababa", - }, - ], } diff --git a/examples/08-blocks/shed-examples.json5 b/examples/08-blocks/shed-examples.json5 new file mode 100644 index 00000000..112b5b2e --- /dev/null +++ b/examples/08-blocks/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "counting", + expectedOutput: "count=one\ncount=two\ncount=many", + }, + ], +} diff --git a/examples/08-blocks/shed.json5 b/examples/08-blocks/shed.json5 index 7d7719ad..68d4287c 100644 --- a/examples/08-blocks/shed.json5 +++ b/examples/08-blocks/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "Counting", }, ], - examples: [ - { - bin: "counting", - expectedOutput: "count=one\ncount=two\ncount=many", - }, - ], } diff --git a/examples/09-var/shed-examples.json5 b/examples/09-var/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/09-var/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/09-var/shed.json5 b/examples/09-var/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/09-var/shed.json5 +++ b/examples/09-var/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/10-while/shed-examples.json5 b/examples/10-while/shed-examples.json5 new file mode 100644 index 00000000..3ca518d7 --- /dev/null +++ b/examples/10-while/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "counting", + expectedOutput: "one\ntwo\nmany", + }, + ], +} diff --git a/examples/10-while/shed.json5 b/examples/10-while/shed.json5 index bf2e41bc..68d4287c 100644 --- a/examples/10-while/shed.json5 +++ b/examples/10-while/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "Counting", }, ], - examples: [ - { - bin: "counting", - expectedOutput: "one\ntwo\nmany", - }, - ], } diff --git a/examples/11-tuples/shed-examples.json5 b/examples/11-tuples/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/11-tuples/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/11-tuples/shed.json5 b/examples/11-tuples/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/11-tuples/shed.json5 +++ b/examples/11-tuples/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/12-named-args/shed-examples.json5 b/examples/12-named-args/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/12-named-args/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/12-named-args/shed.json5 b/examples/12-named-args/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/12-named-args/shed.json5 +++ b/examples/12-named-args/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/13-target-ignore/shed-examples.json5 b/examples/13-target-ignore/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/13-target-ignore/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/13-target-ignore/shed.json5 b/examples/13-target-ignore/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/13-target-ignore/shed.json5 +++ b/examples/13-target-ignore/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/14-structs/shed-examples.json5 b/examples/14-structs/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/14-structs/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/14-structs/shed.json5 b/examples/14-structs/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/14-structs/shed.json5 +++ b/examples/14-structs/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/15-struct-hoisting/shed-examples.json5 b/examples/15-struct-hoisting/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/15-struct-hoisting/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/15-struct-hoisting/shed.json5 b/examples/15-struct-hoisting/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/15-struct-hoisting/shed.json5 +++ b/examples/15-struct-hoisting/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/16-struct-positional-fields/shed-examples.json5 b/examples/16-struct-positional-fields/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/16-struct-positional-fields/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/16-struct-positional-fields/shed.json5 b/examples/16-struct-positional-fields/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/16-struct-positional-fields/shed.json5 +++ b/examples/16-struct-positional-fields/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/17-sums/shed-examples.json5 b/examples/17-sums/shed-examples.json5 new file mode 100644 index 00000000..4a4b2b7c --- /dev/null +++ b/examples/17-sums/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "Some(hello, world!)\nNone", + }, + ], +} diff --git a/examples/17-sums/shed.json5 b/examples/17-sums/shed.json5 index ef44c0ca..a6c8e563 100644 --- a/examples/17-sums/shed.json5 +++ b/examples/17-sums/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "Some(hello, world!)\nNone", - }, - ], } diff --git a/examples/18-import/shed-examples.json5 b/examples/18-import/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/18-import/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/18-import/shed.json5 b/examples/18-import/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/18-import/shed.json5 +++ b/examples/18-import/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/19-function-expression/shed-examples.json5 b/examples/19-function-expression/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/19-function-expression/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/19-function-expression/shed.json5 b/examples/19-function-expression/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/19-function-expression/shed.json5 +++ b/examples/19-function-expression/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/20-function-expression-infer-return-type/shed-examples.json5 b/examples/20-function-expression-infer-return-type/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/20-function-expression-infer-return-type/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/20-function-expression-infer-return-type/shed.json5 b/examples/20-function-expression-infer-return-type/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/20-function-expression-infer-return-type/shed.json5 +++ b/examples/20-function-expression-infer-return-type/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/21-function-expression-infer-param-type/shed-examples.json5 b/examples/21-function-expression-infer-param-type/shed-examples.json5 new file mode 100644 index 00000000..81fa6d68 --- /dev/null +++ b/examples/21-function-expression-infer-param-type/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world\nworld, hello", + }, + ], +} diff --git a/examples/21-function-expression-infer-param-type/shed.json5 b/examples/21-function-expression-infer-param-type/shed.json5 index 589f5e5d..a6c8e563 100644 --- a/examples/21-function-expression-infer-param-type/shed.json5 +++ b/examples/21-function-expression-infer-param-type/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world\nworld, hello", - }, - ], } diff --git a/examples/22-effect-resume/shed-examples.json5 b/examples/22-effect-resume/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/22-effect-resume/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/22-effect-resume/shed.json5 b/examples/22-effect-resume/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/22-effect-resume/shed.json5 +++ b/examples/22-effect-resume/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/23-effect-resume-with-value/shed-examples.json5 b/examples/23-effect-resume-with-value/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/23-effect-resume-with-value/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/23-effect-resume-with-value/shed.json5 b/examples/23-effect-resume-with-value/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/23-effect-resume-with-value/shed.json5 +++ b/examples/23-effect-resume-with-value/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/24-effect-with-state/shed-examples.json5 b/examples/24-effect-with-state/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/24-effect-with-state/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/24-effect-with-state/shed.json5 b/examples/24-effect-with-state/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/24-effect-with-state/shed.json5 +++ b/examples/24-effect-with-state/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/25-effect-handler-pop/shed-examples.json5 b/examples/25-effect-handler-pop/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/25-effect-handler-pop/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/25-effect-handler-pop/shed.json5 b/examples/25-effect-handler-pop/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/25-effect-handler-pop/shed.json5 +++ b/examples/25-effect-handler-pop/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/26-effect-handler-pop-on-return/shed-examples.json5 b/examples/26-effect-handler-pop-on-return/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/26-effect-handler-pop-on-return/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/26-effect-handler-pop-on-return/shed.json5 b/examples/26-effect-handler-pop-on-return/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/26-effect-handler-pop-on-return/shed.json5 +++ b/examples/26-effect-handler-pop-on-return/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/27-effect-handler-nested/shed-examples.json5 b/examples/27-effect-handler-nested/shed-examples.json5 new file mode 100644 index 00000000..13ea0b50 --- /dev/null +++ b/examples/27-effect-handler-nested/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "example", + expectedOutput: "a outer\na inner\na inner\nb\na inner\na inner\na outer", + }, + ], +} diff --git a/examples/27-effect-handler-nested/shed.json5 b/examples/27-effect-handler-nested/shed.json5 index ca7c7829..e642a813 100644 --- a/examples/27-effect-handler-nested/shed.json5 +++ b/examples/27-effect-handler-nested/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "Example", }, ], - examples: [ - { - bin: "example", - expectedOutput: "a outer\na inner\na inner\nb\na inner\na inner\na outer", - }, - ], } diff --git a/examples/28-effect-in-handler/shed-examples.json5 b/examples/28-effect-in-handler/shed-examples.json5 new file mode 100644 index 00000000..0717d99b --- /dev/null +++ b/examples/28-effect-in-handler/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "example", + expectedOutput: "a outer\na inner start\na outer\na inner end\nb start\na inner start\na outer\na inner end\nb end\na inner start\na outer\na inner end\na outer", + }, + ], +} diff --git a/examples/28-effect-in-handler/shed.json5 b/examples/28-effect-in-handler/shed.json5 index cb9b7f24..e642a813 100644 --- a/examples/28-effect-in-handler/shed.json5 +++ b/examples/28-effect-in-handler/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "Example", }, ], - examples: [ - { - bin: "example", - expectedOutput: "a outer\na inner start\na outer\na inner end\nb start\na inner start\na outer\na inner end\nb end\na inner start\na outer\na inner end\na outer", - }, - ], } diff --git a/examples/29-effect-break/shed-examples.json5 b/examples/29-effect-break/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/29-effect-break/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/29-effect-break/shed.json5 b/examples/29-effect-break/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/29-effect-break/shed.json5 +++ b/examples/29-effect-break/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/30-generic-structs/shed-examples.json5 b/examples/30-generic-structs/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/30-generic-structs/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/30-generic-structs/shed.json5 b/examples/30-generic-structs/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/30-generic-structs/shed.json5 +++ b/examples/30-generic-structs/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } diff --git a/examples/31-generic-sums/shed-examples.json5 b/examples/31-generic-sums/shed-examples.json5 new file mode 100644 index 00000000..4a4b2b7c --- /dev/null +++ b/examples/31-generic-sums/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "Some(hello, world!)\nNone", + }, + ], +} diff --git a/examples/31-generic-sums/shed.json5 b/examples/31-generic-sums/shed.json5 index ef44c0ca..a6c8e563 100644 --- a/examples/31-generic-sums/shed.json5 +++ b/examples/31-generic-sums/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "Some(hello, world!)\nNone", - }, - ], } diff --git a/examples/32-generic-structs-and-sums-inferred-type-args/shed-examples.json5 b/examples/32-generic-structs-and-sums-inferred-type-args/shed-examples.json5 new file mode 100644 index 00000000..4a4b2b7c --- /dev/null +++ b/examples/32-generic-structs-and-sums-inferred-type-args/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "Some(hello, world!)\nNone", + }, + ], +} diff --git a/examples/32-generic-structs-and-sums-inferred-type-args/shed.json5 b/examples/32-generic-structs-and-sums-inferred-type-args/shed.json5 index ef44c0ca..a6c8e563 100644 --- a/examples/32-generic-structs-and-sums-inferred-type-args/shed.json5 +++ b/examples/32-generic-structs-and-sums-inferred-type-args/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "Some(hello, world!)\nNone", - }, - ], } diff --git a/examples/33-generic-functions/shed-examples.json5 b/examples/33-generic-functions/shed-examples.json5 new file mode 100644 index 00000000..52763f4c --- /dev/null +++ b/examples/33-generic-functions/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world!", + }, + ], +} diff --git a/examples/33-generic-functions/shed.json5 b/examples/33-generic-functions/shed.json5 index 9e86b280..a6c8e563 100644 --- a/examples/33-generic-functions/shed.json5 +++ b/examples/33-generic-functions/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world!", - }, - ], } diff --git a/examples/34-generic-effects/shed-examples.json5 b/examples/34-generic-effects/shed-examples.json5 new file mode 100644 index 00000000..d104124f --- /dev/null +++ b/examples/34-generic-effects/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello\nhello", + }, + ], +} diff --git a/examples/34-generic-effects/shed.json5 b/examples/34-generic-effects/shed.json5 index b1c76b7a..a6c8e563 100644 --- a/examples/34-generic-effects/shed.json5 +++ b/examples/34-generic-effects/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello\nhello", - }, - ], } diff --git a/examples/35-struct-methods/shed-examples.json5 b/examples/35-struct-methods/shed-examples.json5 new file mode 100644 index 00000000..95fb0a97 --- /dev/null +++ b/examples/35-struct-methods/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "one\ntwo\nmany", + }, + ], +} diff --git a/examples/35-struct-methods/shed.json5 b/examples/35-struct-methods/shed.json5 index 8953bef1..a6c8e563 100644 --- a/examples/35-struct-methods/shed.json5 +++ b/examples/35-struct-methods/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "one\ntwo\nmany", - }, - ], } diff --git a/examples/36-struct-method-references/shed-examples.json5 b/examples/36-struct-method-references/shed-examples.json5 new file mode 100644 index 00000000..a57c4749 --- /dev/null +++ b/examples/36-struct-method-references/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "one apple\ntwo bananas\nmany coconuts!", + }, + ], +} diff --git a/examples/36-struct-method-references/shed.json5 b/examples/36-struct-method-references/shed.json5 index 748b84b8..a6c8e563 100644 --- a/examples/36-struct-method-references/shed.json5 +++ b/examples/36-struct-method-references/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "one apple\ntwo bananas\nmany coconuts!", - }, - ], } diff --git a/examples/37-generic-struct-methods/shed-examples.json5 b/examples/37-generic-struct-methods/shed-examples.json5 new file mode 100644 index 00000000..531c665f --- /dev/null +++ b/examples/37-generic-struct-methods/shed-examples.json5 @@ -0,0 +1,9 @@ +{ + examples: [ + { + project: ".", + bin: "hello-world", + expectedOutput: "hello, world", + }, + ], +} diff --git a/examples/37-generic-struct-methods/shed.json5 b/examples/37-generic-struct-methods/shed.json5 index e08441e6..a6c8e563 100644 --- a/examples/37-generic-struct-methods/shed.json5 +++ b/examples/37-generic-struct-methods/shed.json5 @@ -5,10 +5,4 @@ mainNamespace: "HelloWorld", }, ], - examples: [ - { - bin: "hello-world", - expectedOutput: "hello, world", - }, - ], } -- cgit v1.2.3