aboutsummaryrefslogtreecommitdiffstats
path: root/spec/input_spec.moon
diff options
context:
space:
mode:
Diffstat (limited to 'spec/input_spec.moon')
-rw-r--r--spec/input_spec.moon15
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