Skip to content

Commit 8f71887

Browse files
committed
Improve flat_map test descriptions for clarity
1 parent 3f52ef6 commit 8f71887

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • mrbgems/mruby-enum-lazy/test

mrbgems/mruby-enum-lazy/test/lazy.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ def a.b(b=nil)
4646
assert_equal [0*1, 2*3, 4*5, 6*7], lazy_enum.map { |a| a.first * a.last }.first(4)
4747
end
4848

49-
assert("Enumerator::Lazy#flat_map with arrays") do
49+
assert("Enumerator::Lazy#flat_map with array from block") do
5050
assert_equal [1, 10, 2, 20, 3, 30], [1, 2, 3].lazy.flat_map {|x| [x, x*10]}.force
5151
end
5252

53-
assert("Enumerator::Lazy#flat_map with non-enumerable") do
53+
assert("Enumerator::Lazy#flat_map with non-enumerable from block") do
5454
assert_equal [1, 2, 3], [1, 2, 3].lazy.flat_map {|x| x}.force
5555
end
5656

57-
assert("Enumerator::Lazy#flat_map with enumerable") do
57+
assert("Enumerator::Lazy#flat_map with nested array from block") do
5858
assert_equal [[1, 2], [3, 4]], [1, 3].lazy.flat_map {|x| [[x, x+1]]}.force
5959
end
6060

0 commit comments

Comments
 (0)