1 require 'spec_helper_acceptance'
3 describe 'range function' do
7 notice(inline_template('range is <%= @o.inspect %>'))
10 apply_manifest(pp1, :catch_failures => true) do |r|
11 expect(r.stdout).to match(%r{range is \["a", "b", "c", "d"\]})
16 $o = range('a','d', '2')
17 notice(inline_template('range is <%= @o.inspect %>'))
19 it 'ranges letters with a step' do
20 apply_manifest(pp2, :catch_failures => true) do |r|
21 expect(r.stdout).to match(%r{range is \["a", "c"\]})
24 it 'ranges letters with a negative step'
26 it 'ranges numbers with a step'
27 it 'ranges numbers with a negative step'
28 it 'ranges numeric strings'
29 it 'ranges zero padded numbers'
32 it 'fails with no arguments'