ui.tools.listener: adding some tests for interactor read-until.
parent
3b5094a73c
commit
e6dc084aa7
|
@ -51,6 +51,37 @@ IN: ui.tools.listener.tests
|
|||
[ ] [ "interactor" get evaluate-input ] unit-test
|
||||
|
||||
[ "hi" ] [ "promise" get 5 seconds ?promise-timeout ] unit-test
|
||||
|
||||
[ ] [ <promise> "promise" set ] unit-test
|
||||
|
||||
[
|
||||
self "interactor" get thread<<
|
||||
"\n" "interactor" get stream-read-until 2array "promise" get fulfill
|
||||
] "Interactor test" spawn drop
|
||||
|
||||
[ ] [ "Hello\nWorld\n" "interactor" get set-editor-string ] unit-test
|
||||
|
||||
[ ] [ [ "interactor" get interactor-busy? ] [ yield ] while ] unit-test
|
||||
|
||||
[ ] [ "interactor" get evaluate-input ] unit-test
|
||||
|
||||
[ { "Hello" 10 } ] [ "promise" get 5 seconds ?promise-timeout ] unit-test
|
||||
|
||||
[ ] [ <promise> "promise" set ] unit-test
|
||||
|
||||
[
|
||||
self "interactor" get thread<<
|
||||
"C\n" "interactor" get stream-read-until 2array "promise" get fulfill
|
||||
] "Interactor test" spawn drop
|
||||
|
||||
[ ] [ "ABCDEFGHIJKLM" "interactor" get set-editor-string ] unit-test
|
||||
|
||||
[ ] [ [ "interactor" get interactor-busy? ] [ yield ] while ] unit-test
|
||||
|
||||
[ ] [ "interactor" get evaluate-input ] unit-test
|
||||
|
||||
[ { "AB" 67 } ] [ "promise" get 5 seconds ?promise-timeout ] unit-test
|
||||
|
||||
] with-interactive-vocabs
|
||||
|
||||
! Hang
|
||||
|
|
Loading…
Reference in New Issue