1 require 'spec_helper_acceptance'
3 describe 'shuffle function' do
6 $a = ["1", "2", "3", "4", "5", "6", "7", "8", "the","public","art","galleries"]
7 # Anagram: Large picture halls, I bet
9 notice(inline_template('shuffle is <%= @o.inspect %>'))
11 it 'shuffles arrays' do
12 apply_manifest(pp1, :catch_failures => true) do |r|
13 expect(r.stdout).not_to match(%r{shuffle is \["1", "2", "3", "4", "5", "6", "7", "8", "the", "public", "art", "galleries"\]})
18 $a = "blowzy night-frumps vex'd jack q"
20 notice(inline_template('shuffle is <%= @o.inspect %>'))
22 it 'shuffles strings' do
23 apply_manifest(pp2, :catch_failures => true) do |r|
24 expect(r.stdout).not_to match(%r{shuffle is "blowzy night-frumps vex'd jack q"})
29 it 'handles no arguments'
30 it 'handles non strings or arrays'