test/test_thread_pool.rb in zold-0.18.7 vs test/test_thread_pool.rb in zold-0.18.8

- old
+ new

@@ -50,9 +50,15 @@ idx.increment end assert_equal(threads, idx.value) end + def test_runs_with_empty_set + Zold::ThreadPool.new('test', log: test_log).run(5, []) do + # nothing + end + end + def test_runs_with_index idx = Concurrent::AtomicFixnum.new indexes = Set.new Zold::ThreadPool.new('test', log: test_log).run(10, %w[a b c]) do |_, i| idx.increment