diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-12 14:20:52 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:23:21 +0000 |
| commit | b41a406ab7f56cc33aca594fb38b60c67d4130ce (patch) | |
| tree | faf683fef2ee2b700b3f0d688e0f4727fc64ab0e /spec/input_spec.moon | |
| parent | make EvtStreams carry a single value (diff) | |
| download | alive-b41a406ab7f56cc33aca594fb38b60c67d4130ce.tar.gz alive-b41a406ab7f56cc33aca594fb38b60c67d4130ce.zip | |
RTNode constifies constant SigStreams
Diffstat (limited to 'spec/input_spec.moon')
| -rw-r--r-- | spec/input_spec.moon | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/spec/input_spec.moon b/spec/input_spec.moon index 3a8eff9..9237fd8 100644 --- a/spec/input_spec.moon +++ b/spec/input_spec.moon @@ -28,6 +28,9 @@ describe 'Input.cold', -> basic_tests result, input + it 'is marked cold', -> + assert.is.equal 'cold', input.mode + it 'is never dirty', -> assert.is.false input\dirty! result\set 2 @@ -51,6 +54,9 @@ describe 'Input.hot', -> basic_tests result, input + it 'is marked cold', -> + assert.is.equal 'cold', input.mode + describe 'at evaltime', -> it 'is dirty when new', -> assert.is.false result\dirty! @@ -84,8 +90,8 @@ describe 'Input.hot', -> basic_tests result, input - it 'is marked for lifting', -> - assert.is.nil input.io + it 'is marked hot', -> + assert.is.equal 'hot', input.mode it 'is dirty when the EvtStream is dirty', -> assert.is.false input\dirty! @@ -115,7 +121,7 @@ describe 'Input.hot', -> basic_tests result, input it 'is marked for lifting', -> - assert.is.true input.io + assert.is.equal 'io', input.mode it 'is dirty when the IOStream is dirty', -> result.is_dirty = false @@ -172,6 +178,9 @@ describe 'Input.hot', -> assert.is.false newinput\dirty! newinput\finish_setup! + it 'is marked hot', -> + assert.is.equal 'hot', input.mode + describe 'at runtime', -> it 'is dirty when the result is dirty', -> result\set 3 |
