summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/is_float_spec.rb
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2013-01-03 13:39:05 -0800
committerJeff McCune <jeff@puppetlabs.com>2013-01-03 13:39:05 -0800
commitfb7ae217438590c8ca081d9646f2823d03bbb83d (patch)
treec929d881a8cd141ff34e2f9a02de712dc4611c54 /spec/unit/puppet/parser/functions/is_float_spec.rb
parent97cb7595337c238c994e703464f533dcf98049e8 (diff)
parentd7aea0f0be659223452ba2d65e799d2b7dbfd823 (diff)
Merge branch '3.x' into 4.x
* 3.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_float_spec.rb')
-rw-r--r--spec/unit/puppet/parser/functions/is_float_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/puppet/parser/functions/is_float_spec.rb b/spec/unit/puppet/parser/functions/is_float_spec.rb
index 2f527d9..b7d73b0 100644
--- a/spec/unit/puppet/parser/functions/is_float_spec.rb
+++ b/spec/unit/puppet/parser/functions/is_float_spec.rb
@@ -26,4 +26,8 @@ describe "the is_float function" do
result = scope.function_is_float(["3"])
result.should(eq(false))
end
+ it "should return true if a float is created from an arithmetical operation" do
+ result = scope.function_is_float([3.2*2])
+ result.should(eq(true))
+ end
end