We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce995e1 commit af0a277Copy full SHA for af0a277
1 file changed
spec/functions/range_spec.rb
@@ -73,5 +73,14 @@
73
expected = (1..10).to_a
74
expect(scope.function_range([1,10])).to eq expected
75
end
76
+ it "returns a range of numbers with step parameter" do
77
+ expected = (1..10).step(2).to_a
78
+ expect(scope.function_range([1,10,2])).to eq expected
79
+ end
80
+ it "works with mixed numeric like strings and numeric arguments" do
81
+ expected = (1..10).to_a
82
+ expect(scope.function_range(['1',10])).to eq expected
83
+ expect(scope.function_range([1,'10'])).to eq expected
84
85
86
0 commit comments