aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-01-11 11:30:27 +0000
committerMichael Williamson <mike@zwobble.org>2025-01-11 11:30:27 +0000
commit470b1fab1f9d99d6c85f479e28ea1c424e671e0a (patch)
tree45c3b520d5dd2b38e3a2671e55068957808763c0 /examples
parentacb019f53eefaee7dd7ab6e808cab0a0daa0b91f (diff)
Create separate config file for examples
Diffstat (limited to 'examples')
-rw-r--r--examples/00-missing-main/shed-examples.json59
-rw-r--r--examples/00-missing-main/shed.json56
-rw-r--r--examples/01-true/shed-examples.json59
-rw-r--r--examples/01-true/shed.json56
-rw-r--r--examples/02-hello-world/shed-examples.json59
-rw-r--r--examples/02-hello-world/shed.json56
-rw-r--r--examples/03-val/shed-examples.json59
-rw-r--r--examples/03-val/shed.json56
-rw-r--r--examples/04-val-as-namespace-statement/shed-examples.json59
-rw-r--r--examples/04-val-as-namespace-statement/shed.json56
-rw-r--r--examples/05-string-add/shed-examples.json59
-rw-r--r--examples/05-string-add/shed.json56
-rw-r--r--examples/06-if/shed-examples.json59
-rw-r--r--examples/06-if/shed.json56
-rw-r--r--examples/07-mutual-recursion/shed-examples.json59
-rw-r--r--examples/07-mutual-recursion/shed.json56
-rw-r--r--examples/08-blocks/shed-examples.json59
-rw-r--r--examples/08-blocks/shed.json56
-rw-r--r--examples/09-var/shed-examples.json59
-rw-r--r--examples/09-var/shed.json56
-rw-r--r--examples/10-while/shed-examples.json59
-rw-r--r--examples/10-while/shed.json56
-rw-r--r--examples/11-tuples/shed-examples.json59
-rw-r--r--examples/11-tuples/shed.json56
-rw-r--r--examples/12-named-args/shed-examples.json59
-rw-r--r--examples/12-named-args/shed.json56
-rw-r--r--examples/13-target-ignore/shed-examples.json59
-rw-r--r--examples/13-target-ignore/shed.json56
-rw-r--r--examples/14-structs/shed-examples.json59
-rw-r--r--examples/14-structs/shed.json56
-rw-r--r--examples/15-struct-hoisting/shed-examples.json59
-rw-r--r--examples/15-struct-hoisting/shed.json56
-rw-r--r--examples/16-struct-positional-fields/shed-examples.json59
-rw-r--r--examples/16-struct-positional-fields/shed.json56
-rw-r--r--examples/17-sums/shed-examples.json59
-rw-r--r--examples/17-sums/shed.json56
-rw-r--r--examples/18-import/shed-examples.json59
-rw-r--r--examples/18-import/shed.json56
-rw-r--r--examples/19-function-expression/shed-examples.json59
-rw-r--r--examples/19-function-expression/shed.json56
-rw-r--r--examples/20-function-expression-infer-return-type/shed-examples.json59
-rw-r--r--examples/20-function-expression-infer-return-type/shed.json56
-rw-r--r--examples/21-function-expression-infer-param-type/shed-examples.json59
-rw-r--r--examples/21-function-expression-infer-param-type/shed.json56
-rw-r--r--examples/22-effect-resume/shed-examples.json59
-rw-r--r--examples/22-effect-resume/shed.json56
-rw-r--r--examples/23-effect-resume-with-value/shed-examples.json59
-rw-r--r--examples/23-effect-resume-with-value/shed.json56
-rw-r--r--examples/24-effect-with-state/shed-examples.json59
-rw-r--r--examples/24-effect-with-state/shed.json56
-rw-r--r--examples/25-effect-handler-pop/shed-examples.json59
-rw-r--r--examples/25-effect-handler-pop/shed.json56
-rw-r--r--examples/26-effect-handler-pop-on-return/shed-examples.json59
-rw-r--r--examples/26-effect-handler-pop-on-return/shed.json56
-rw-r--r--examples/27-effect-handler-nested/shed-examples.json59
-rw-r--r--examples/27-effect-handler-nested/shed.json56
-rw-r--r--examples/28-effect-in-handler/shed-examples.json59
-rw-r--r--examples/28-effect-in-handler/shed.json56
-rw-r--r--examples/29-effect-break/shed-examples.json59
-rw-r--r--examples/29-effect-break/shed.json56
-rw-r--r--examples/30-generic-structs/shed-examples.json59
-rw-r--r--examples/30-generic-structs/shed.json56
-rw-r--r--examples/31-generic-sums/shed-examples.json59
-rw-r--r--examples/31-generic-sums/shed.json56
-rw-r--r--examples/32-generic-structs-and-sums-inferred-type-args/shed-examples.json59
-rw-r--r--examples/32-generic-structs-and-sums-inferred-type-args/shed.json56
-rw-r--r--examples/33-generic-functions/shed-examples.json59
-rw-r--r--examples/33-generic-functions/shed.json56
-rw-r--r--examples/34-generic-effects/shed-examples.json59
-rw-r--r--examples/34-generic-effects/shed.json56
-rw-r--r--examples/35-struct-methods/shed-examples.json59
-rw-r--r--examples/35-struct-methods/shed.json56
-rw-r--r--examples/36-struct-method-references/shed-examples.json59
-rw-r--r--examples/36-struct-method-references/shed.json56
-rw-r--r--examples/37-generic-struct-methods/shed-examples.json59
-rw-r--r--examples/37-generic-struct-methods/shed.json56
76 files changed, 342 insertions, 228 deletions
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",
- },
- ],
}