1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'clamp function' do
6 it 'clamps list of values' do
11 $o = clamp($x, $y, $z)
13 notify { 'output correct': }
17 apply_manifest(pp, :catch_failures => true) do |r|
18 expect(r.stdout).to match(/Notice: output correct/)
21 it 'clamps array of values' do
27 notify { 'output correct': }
31 apply_manifest(pp, :catch_failures => true) do |r|
32 expect(r.stdout).to match(/Notice: output correct/)
37 it 'handles improper argument counts'
38 it 'handles no arguments'