1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'hash function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
8 $a = ['aaa','bbb','bbb','ccc','ddd','eee']
9 $b = { 'aaa' => 'bbb', 'bbb' => 'ccc', 'ddd' => 'eee' }
12 notify { 'output correct': }
16 apply_manifest(pp, :catch_failures => true) do |r|
17 expect(r.stdout).to match(/Notice: output correct/)
20 it 'handles odd-length arrays'
23 it 'handles improper argument counts'
24 it 'handles non-arrays'