aboutsummaryrefslogtreecommitdiffstats
path: root/spec/match_spec.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-08 09:41:08 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:23:21 +0000
commit99ca67938c0145db37182bdb709d9424a20dfee0 (patch)
tree6df4e2b5fde650aa3c7e36893eb1780f932d56bd /spec/match_spec.moon
parentrelease v0.1 (diff)
downloadalive-99ca67938c0145db37182bdb709d9424a20dfee0.tar.gz
alive-99ca67938c0145db37182bdb709d9424a20dfee0.zip
wip new type system and refactoring
- Result -> RTNode - Stream -> Result - ValueStream -> SigStream - EventStream -> EvtStream
Diffstat (limited to 'spec/match_spec.moon')
-rw-r--r--spec/match_spec.moon11
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/match_spec.moon b/spec/match_spec.moon
index 52911db..91cee02 100644
--- a/spec/match_spec.moon
+++ b/spec/match_spec.moon
@@ -1,14 +1,15 @@
import val, evt from require 'alv.base.match'
-import Result, ValueStream, EventStream from require 'alv'
+import RTNode, SigStream, EvtStream from require 'alv'
+import Primitive from require 'alv.types'
mk_val = (type, const) ->
- value = ValueStream type
- with Result :value
+ value = SigStream Primitive type
+ with RTNode :value
.side_inputs = { 'fake' } unless const
mk_evt = (type, const) ->
- value = EventStream type
- with Result :value
+ value = EvtStream Primitive type
+ with RTNode :value
.side_inputs = { 'fake' } unless const
describe 'val and evt', ->