puppetlabs-stdlib/spec
Steve Huff 8d217f0012 (19864) num2bool match fix
This is a bit more heavy-handed than I might like, but it does appear to
do the right things:

* accepts numeric input appropriately, truncating floats
* matches string input against a regex, then coerces number-looking
  strings to int
* makes a best effort to coerce anything else to a string, then subjects
  it to the same treatment
* raises an error in the event of incorrect number of arguments or
  non-number-looking strings

I've also included some additional unit tests.
2013-03-29 15:06:36 -04: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 (19864) num2bool match fix 2013-03-29 15:06:36 -04: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