puppetlabs-stdlib/spec
Jeff McCune 435226abfd (maint) Add the behavior for count() with arrays and hashes
Without this patch the expected behavior of the count() function when
dealing with an out of bound array index and with a hash key that does
not exist is implicitly encoded in the spec examples.  This is a problem
because the expected behavior is not clear for something similar to the
following example:

    node default {
      $ary = [ 1, 2, 3 ]
      $ary_undef = $ary[100]
      $hsh = { 'one' => 1 }
      $hsh_undef = $hsh['dne']
      $count = count(['hi', $ary_undef, $hsh_undef])
      notice "Count is ${count}"
    }

This patch addresses the problem by making the expected behavior
explicit in the examples.
2013-04-10 14:33:10 -07:00
..
functions Add getparam function to get defined resource parameters 2013-01-09 17:51:12 -08:00
monkey_patches puppet-lint cleanup 2012-11-15 10:38:03 -06:00
unit (maint) Add the behavior for count() with arrays and hashes 2013-04-10 14:33:10 -07:00
spec.opts Copied function test scaffolding from puppet. 2011-06-29 12:25:43 +01:00
spec_helper.rb Revert "Revert "Merge branch '2.5.x' into 3.0.x"" 2012-10-25 15:44:14 -07:00
watchr.rb (Maint) Add watchr autotest script 2011-10-10 12:03:57 -07:00