Skip to content

Commit 8998542

Browse files
committed
list-tests works
1 parent e6c29ee commit 8998542

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

src/test/eo/org/eolang/threads/thread-test.eo

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@
2121
# SOFTWARE.
2222

2323
+alias org.eolang.hamcrest.assert-that
24-
+alias org.eolang.sys.call
2524
+alias org.eolang.threads.thread
2625
+alias org.eolang.threads.sleep
26+
+alias org.eolang.collections.list
2727
2828
+home https://github.com/objectionary/eo-threads
2929
+junit
3030
+package org.eolang.threads
3131
+version 0.0.0
3232

33+
TRUE > call
34+
3335
[] > thread-returns-string
3436
thread "hello" > t
3537
seq > @
@@ -233,3 +235,34 @@
233235
t.stop
234236
$.equal-to
235237
TRUE
238+
239+
[] > list-tests
240+
memory 0 > m
241+
[size mem] > my-list
242+
if. > @
243+
size.lte 0
244+
list *
245+
with.
246+
my-list
247+
size.minus 1
248+
mem
249+
thread
250+
mem.write
251+
mem.plus 1
252+
my-list 3 m > l
253+
seq > @
254+
reduced.
255+
l
256+
TRUE
257+
[a x]
258+
and. > @
259+
a
260+
x.started
261+
reduced.
262+
l
263+
0
264+
[a x]
265+
plus. > @
266+
a
267+
x.join
268+
TRUE

0 commit comments

Comments
 (0)