diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2011-02-17 14:06:22 -0800 |
|---|---|---|
| committer | Nick Lewis <nick@puppetlabs.com> | 2011-02-17 14:06:22 -0800 |
| commit | ab27da7967e1e145d5fbc130e5fbcec6795ca775 (patch) | |
| tree | 1f0e312846e8042895caec1737fe600e0ae09352 /spec/integration/parser | |
| parent | ab1126e1c5931833299f06cb5977b1ca2d0badd0 (diff) | |
| parent | e3c59df2b246fe5e764272f21b631a5d2f28687f (diff) | |
| download | puppet-ab27da7967e1e145d5fbc130e5fbcec6795ca775.tar.gz puppet-ab27da7967e1e145d5fbc130e5fbcec6795ca775.tar.xz puppet-ab27da7967e1e145d5fbc130e5fbcec6795ca775.zip | |
Merge branch 'ticket/2.6.next/5935' into 2.6.next
Diffstat (limited to 'spec/integration/parser')
| -rwxr-xr-x | spec/integration/parser/parser_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/integration/parser/parser_spec.rb b/spec/integration/parser/parser_spec.rb index 20d87c228..000e68dd8 100755 --- a/spec/integration/parser/parser_spec.rb +++ b/spec/integration/parser/parser_spec.rb @@ -116,5 +116,18 @@ describe Puppet::Parser::Parser do $out = $hash['a']['b']['c'] }.should parse_with { |v| v.value.is_a?(Puppet::Parser::AST::ASTHash) } end + + it "should be able to pass numbers to functions" do + %q{ + my_function(1) + }.should parse_as(Puppet::Parser::AST::Function) + end + + it "should be able to pass negative numbers to functions" do + %q{ + my_function(-1) + }.should parse_as(Puppet::Parser::AST::Function) + end + end end |
