Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / intersection_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'intersection function' do
4   describe 'success' do
5     pp = <<-DOC
6       $a = ['aaa','bbb','ccc']
7       $b = ['bbb','ccc','ddd','eee']
8       $c = ['bbb','ccc']
9       $o = intersection($a,$b)
10       if $o == $c {
11         notify { 'output correct': }
12       }
13     DOC
14     it 'intersections arrays' do
15       apply_manifest(pp, :catch_failures => true) do |r|
16         expect(r.stdout).to match(%r{Notice: output correct})
17       end
18     end
19     it 'intersections empty arrays'
20   end
21   describe 'failure' do
22     it 'handles improper argument counts'
23     it 'handles non-arrays'
24   end
25 end