diff options
author | Jeff McCune <jeff@puppetlabs.com> | 2013-01-03 13:38:36 -0800 |
---|---|---|
committer | Jeff McCune <jeff@puppetlabs.com> | 2013-01-03 13:38:36 -0800 |
commit | d7aea0f0be659223452ba2d65e799d2b7dbfd823 (patch) | |
tree | 12d5f80efdcf54f1d3e1731b20777d3b1097c43c /spec/unit/puppet/parser/functions/is_integer_spec.rb | |
parent | e1f2a932883c71038d78938efd46cdb30c01da6d (diff) | |
parent | bc4abce86b07a97ec9d17ee105266c1260a9a1c8 (diff) | |
download | puppet-stdlib-d7aea0f0be659223452ba2d65e799d2b7dbfd823.tar.gz puppet-stdlib-d7aea0f0be659223452ba2d65e799d2b7dbfd823.tar.bz2 |
Merge branch '3.2.x' into 3.x
* 3.2.x:
Add test/validation for is_float if created from an arithmetical operation
Add test/validation for is_integer if created from an arithmetical operation
Add test/validation for is_numeric if created from an arithmetical operation
Diffstat (limited to 'spec/unit/puppet/parser/functions/is_integer_spec.rb')
-rw-r--r-- | spec/unit/puppet/parser/functions/is_integer_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/puppet/parser/functions/is_integer_spec.rb b/spec/unit/puppet/parser/functions/is_integer_spec.rb index 5afbba4..4335795 100644 --- a/spec/unit/puppet/parser/functions/is_integer_spec.rb +++ b/spec/unit/puppet/parser/functions/is_integer_spec.rb @@ -26,4 +26,9 @@ describe "the is_integer function" do result = scope.function_is_integer(["asdf"]) result.should(eq(false)) end + + it "should return true if an integer is created from an arithmetical operation" do + result = scope.function_is_integer([3*2]) + result.should(eq(true)) + end end |