Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/test_rake_file_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -563,27 +563,27 @@ def test_enumeration_methods
assert_equal ["a", "b"], b
assert_equal FileList, b.class

b = a.sort_by { |it| it }
b = a.sort_by { |i| i }
assert_equal ["a", "b"], b
assert_equal FileList, b.class

b = a.select { |it| it == "b" }
b = a.select { |i| i == "b" }
assert_equal ["b"], b
assert_equal FileList, b.class

b = a.select { |it| it.size == 1 }
b = a.select { |i| i.size == 1 }
assert_equal ["a", "b"], b
assert_equal FileList, b.class

b = a.reject { |it| it == "b" }
b = a.reject { |i| i == "b" }
assert_equal ["a"], b
assert_equal FileList, b.class

b = a.grep(/./)
assert_equal ["a", "b"], b
assert_equal FileList, b.class

b = a.partition { |it| it == "b" }
b = a.partition { |i| i == "b" }
assert_equal [["b"], ["a"]], b
assert_equal Array, b.class
assert_equal FileList, b[0].class
Expand Down
Loading