1 require 'spec_helper_acceptance'
3 describe 'is_float function' do
6 $a = ['aaa.com','bbb','ccc']
8 notice(inline_template('is_float is <%= @o.inspect %>'))
10 it 'is_floats arrays' do
11 apply_manifest(pp1, :catch_failures => true) do |r|
12 expect(r.stdout).to match(%r{is_float is false})
19 notice(inline_template('is_float is <%= @o.inspect %>'))
21 it 'is_floats true' do
22 apply_manifest(pp2, :catch_failures => true) do |r|
23 expect(r.stdout).to match(%r{is_float is false})
32 notify { 'output correct': }
35 it 'is_floats strings' do
36 apply_manifest(pp3, :catch_failures => true) do |r|
37 expect(r.stdout).to match(%r{Notice: output correct})
46 notify { 'output correct': }
49 it 'is_floats floats' do
50 apply_manifest(pp4, :catch_failures => true) do |r|
51 expect(r.stdout).to match(%r{Notice: output correct})
60 notify { 'output correct': }
63 it 'is_floats integers' do
64 apply_manifest(pp5, :catch_failures => true) do |r|
65 expect(r.stdout).to match(%r{Notice: output correct})
70 $a = {'aaa'=>'www.com'}
72 notice(inline_template('is_float is <%= @o.inspect %>'))
74 it 'is_floats hashes' do
75 apply_manifest(pp6, :catch_failures => true) do |r|
76 expect(r.stdout).to match(%r{is_float is false})
81 it 'handles improper argument counts'
82 it 'handles non-arrays'