diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-03-24 11:39:25 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-03-24 11:39:25 +0000 |
| commit | 677c0d2f01e14bbeca1583ec7878d80c71c3aa68 (patch) | |
| tree | cc20e04697da590b546de370599eeaaef647d20c /spec/core/pattern_spec.moon | |
| parent | internals/plugin-guide: first draft (diff) | |
| download | alive-677c0d2f01e14bbeca1583ec7878d80c71c3aa68.tar.gz alive-677c0d2f01e14bbeca1583ec7878d80c71c3aa68.zip | |
Value -> Value/Event/IO-Stream
Close 12
Diffstat (limited to 'spec/core/pattern_spec.moon')
| -rw-r--r-- | spec/core/pattern_spec.moon | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/core/pattern_spec.moon b/spec/core/pattern_spec.moon index 4825dcc..523ce86 100644 --- a/spec/core/pattern_spec.moon +++ b/spec/core/pattern_spec.moon @@ -1,5 +1,5 @@ import Pattern, match from require 'core.base.match' -import Result, Value from require 'core' +import Result, ValueStream from require 'core' -- wrap in non-const result wrap = (value) -> @@ -10,11 +10,11 @@ wrap = (value) -> wrap_const = (value) -> Result :value describe 'Type Pattern', -> - num = wrap Value.num 1 - str = wrap Value.str 'hello' - special = wrap Value 'midi/sysex-message' - c_num = wrap_const Value.num 1 - c_str = wrap_const Value.str 'hello' + num = wrap ValueStream.num 1 + str = wrap ValueStream.str 'hello' + special = wrap ValueStream 'midi/sysex-message' + c_num = wrap_const ValueStream.num 1 + c_str = wrap_const ValueStream.str 'hello' describe 'simple types', -> it 'matches self type', -> @@ -151,10 +151,10 @@ describe 'Type Pattern', -> assert.is.same {str}, stream describe 'match', -> - num = wrap Value.num 1 - str = wrap Value.str 'hello' - c_num = wrap_const Value.num 1 - c_str = wrap_const Value.str 'hello' + num = wrap ValueStream.num 1 + str = wrap ValueStream.str 'hello' + c_num = wrap_const ValueStream.num 1 + c_str = wrap_const ValueStream.str 'hello' it 'matches lists', -> assert.is.same {num, num, str}, match 'num num str', {num, num, str} |
