diff --git a/z-yants-tests.nix b/z-yants-tests.nix index b97d058c0..e1e521c5a 100644 --- a/z-yants-tests.nix +++ b/z-yants-tests.nix @@ -63,6 +63,11 @@ deepSeq rec { }; }; + testSumMatch = creature.match testSum { + human = v: "It's a human named ${v.name}"; + pet = v: throw "It's not supposed to be a pet!"; + }; + # Test curried function definitions func = defun [ string int string ] (name: age: "${name} is ${toString age} years old");