Skip to content

Commit b77bc89

Browse files
ethancrawfordsamaaron
authored andcommitted
Tests - check rand num source of threads are initialised
1 parent 2f001fa commit b77bc89

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/server/ruby/test/lang/core/test_threads.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ def test_in_thread
3838

3939
end
4040

41+
def test_in_thread_random_source_initialised
42+
@lang.run do
43+
t = in_thread do
44+
assert_equal :white, current_random_source
45+
end
4146

47+
t.join
48+
end
49+
end
4250
end
4351
end

0 commit comments

Comments
 (0)