diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-01-27 14:14:37 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | ec81cfeeb4797b30da03a631784e7adc86b86a95 (patch) | |
| tree | f619e2d6444242121af48f044f004f6a09e1848d /spec/match_spec.moon | |
| parent | test logic module (diff) | |
| download | alive-ec81cfeeb4797b30da03a631784e7adc86b86a95.tar.gz alive-ec81cfeeb4797b30da03a631784e7adc86b86a95.zip | |
use base.match.any consistently
Diffstat (limited to 'spec/match_spec.moon')
| -rw-r--r-- | spec/match_spec.moon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/match_spec.moon b/spec/match_spec.moon index 0f06c64..b9d5ef6 100644 --- a/spec/match_spec.moon +++ b/spec/match_spec.moon @@ -1,4 +1,4 @@ -import const, sig, evt from require 'alv.base.match' +import const, sig, evt, any from require 'alv.base.match' import Op, Input from require 'alv.base' import RTNode, T, Error from require 'alv' @@ -167,7 +167,7 @@ describe 'choice', -> assert.has.error -> same\match { bool, bool } it 'makes inner types recall', -> - same = (sig! / evt!)! + same = any!! same = same + same assert.is.same { str, str }, same\match { str, str } assert.is.same { num, num }, same\match { num, num } |
