Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / range_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'range function' do
4   describe 'success' do
5     pp1 = <<-DOC
6       $o = range('a','d')
7       notice(inline_template('range is <%= @o.inspect %>'))
8     DOC
9     it 'ranges letters' do
10       apply_manifest(pp1, :catch_failures => true) do |r|
11         expect(r.stdout).to match(%r{range is \["a", "b", "c", "d"\]})
12       end
13     end
14
15     pp2 = <<-DOC
16       $o = range('a','d', '2')
17       notice(inline_template('range is <%= @o.inspect %>'))
18     DOC
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"\]})
22       end
23     end
24     it 'ranges letters with a negative step'
25     it 'ranges numbers'
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'
30   end
31   describe 'failure' do
32     it 'fails with no arguments'
33   end
34 end