mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-08 05:35:00 -05:00
filters#sample: n == 1, return item; n > 1, return array
This commit is contained in:
@@ -397,7 +397,7 @@ class TestFilters < JekyllUnitTest
|
||||
should "allow sampling of multiple values (n > 1)" do
|
||||
input = %w(hey there bernie)
|
||||
@filter.sample(input, 2).each do |val|
|
||||
assert_includes val, input
|
||||
assert_includes input, val
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user