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