init commit again

This commit is contained in:
Peter
2023-11-01 09:29:33 +01:00
parent 448147e7da
commit d6c745207b
250 changed files with 15552 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
general {
funcon-term:
initialise-giving
initialise-binding
sequential(
check-true is-equal(
match([],[]), map()),
check-true is-equal(
match([false],[pattern-bind"b"]),
{"b"|->false}),
check-true is-equal(
match([false,true],[pattern-bind"a",pattern-bind"b"]),
{"a"|->false,"b"|->true}),
check-true is-equal(
match(map(),map()), map()),
check-true is-equal(
match({"a"|->false,"b"|->true},{"b"|->pattern-bind"d","a"|->pattern-bind"c"}),
{"c"|->false,"d"|->true}),
check-true is-equal(
match(true,true), map()),
else(
effect match([],[false]),
effect match([false],[false,false]),
effect match([false,true],[pattern-bind"a",pattern-bind"a"]),
effect match(map(),{"a"|->true}),
effect match({"b"|->true},{"b"|->pattern-any,"c"|->pattern-any}),
effect match(false,true),
print"OK"))
;
}
tests {
result-term: null-value;
standard-out: ["OK"];
}