aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-09-04 09:26:39 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commitcce57208d5db4a539bcf10af09331a9ddd43f7ab (patch)
tree125c4189c10d282a99261783f1eac0809ec324b4 /spec
parentsupport :vis() on builtins (diff)
downloadalive-cce57208d5db4a539bcf10af09331a9ddd43f7ab.tar.gz
alive-cce57208d5db4a539bcf10af09331a9ddd43f7ab.zip
remove IOStreams, support optional polling in Ops
Diffstat (limited to 'spec')
-rw-r--r--spec/input_spec.moon38
1 files changed, 1 insertions, 37 deletions
diff --git a/spec/input_spec.moon b/spec/input_spec.moon
index 9237fd8..04cf16e 100644
--- a/spec/input_spec.moon
+++ b/spec/input_spec.moon
@@ -1,13 +1,9 @@
import do_setup, do_teardown from require 'spec.test_setup'
-import Input, T, Result, IOStream from require 'alv.base'
+import Input, T, Result from require 'alv.base'
setup do_setup
teardown do_teardown
-class MyIO extends IOStream
- new: => super T.my_io
- dirty: => @is_dirty
-
basic_tests = (result, input) ->
it 'gives access to the Result', ->
assert.is.equal result, input.result
@@ -114,38 +110,6 @@ describe 'Input.hot', ->
assert.is.true input\dirty!
assert.is.true result\dirty!
- describe 'with IOStream', ->
- result = MyIO!
- input = Input.hot result
-
- basic_tests result, input
-
- it 'is marked for lifting', ->
- assert.is.equal 'io', input.mode
-
- it 'is dirty when the IOStream is dirty', ->
- result.is_dirty = false
-
- assert.is.false input\dirty!
- assert.is.false result\dirty!
-
- input\setup nil
- assert.is.false input\dirty!
- input\finish_setup!
-
- COPILOT\next_tick!
- result.is_dirty = true
-
- assert.is.true input\dirty!
- assert.is.true result\dirty!
-
- input\setup nil
- assert.is.true input\dirty!
- input\finish_setup!
-
- assert.is.true input\dirty!
- assert.is.true result\dirty!
-
describe 'with SigStream', ->
result = T.num\mk_sig 1
local input