Jira (PUP-6314) Integer.new does not accept whitespace between sign and leading digit

2016-05-16 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6314 
 
 
 
  Integer.new does not accept whitespace between sign and leading digit  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 The following Puppet code:{code}notice Integer.new('+ 1'){code}results in the following error:{code}Error while evaluating a Function Call, invalid value for Integer(): "+ 1"{code}Expected this to print:{code}Notice: Scope(Class[main]): 1{code}The problem is the whitespace between the sign and the leading digit in the number; we support it for arithmetic {{String}} to {{Integer}} conversions (e.g. {{notice '+ 1' + '- 1'}} results in {{0}}), so I expect {{Integer.new}} to be consistent with that conversion. * Note: this also affects {{Float.new}} (and by extension {{Numeric.new}}). * 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6314) Integer.new does not accept whitespace between sign and leading digit

2016-05-16 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6314 
 
 
 
  Integer.new does not accept whitespace between sign and leading digit  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 The following Puppet code:{code}notice Integer.new('+ 1'){code}results in the following error:{code}Error while evaluating a Function Call, invalid value for Integer(): "+ 1"{code}Expected this to print:{code}Notice: Scope(Class[main]): 1{code}The problem is the whitespace between the sign and the leading digit in the number; we support it for arithmetic {{String}} to {{Integer}} conversions (e.g. {{notice '+ 1' + '- 1'}} results in {{0}}), so I expect {{Integer.new}} to be consistent with that conversion. Note: this also affects {{Float.new}} (and by extension {{Numeric.new}}). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6314) Integer.new does not accept whitespace between sign and leading digit

2016-05-16 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6314 
 
 
 
  Integer.new does not accept whitespace between sign and leading digit  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Huene 
 
 
 

Summary:
 
 Numeric Integer .new does not accept whitespace between sign and leading digit 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6314) Integer.new does not accept whitespace between sign and leading digit

2016-05-16 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6314 
 
 
 
  Integer.new does not accept whitespace between sign and leading digit  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 The following Puppet code:{code}notice Integer.new('+ 1'){code}results in the following error:{code}Error while evaluating a Function Call, invalid value for Integer(): "+ 1"{code}Expected this to print:{code}Notice: Scope(Class[main]): 1{code}The problem is the whitespace between the sign and the leading digit in the number; we support it for arithmetic {{String}} to {{Integer}} conversions (e.g. {{notice '+ 1' + '- 1'}} results in {{0}}), so I expect  `  {{ Integer.new ` }}  to be consistent with that conversion. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6314) Integer.new does not accept whitespace between sign and leading digit

2016-05-16 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6314 
 
 
 
  Integer.new does not accept whitespace between sign and leading digit  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 The following Puppet code:{code}notice Integer.new('+ 1'){code}results in the following error:{code}Error while evaluating a Function Call, invalid value for Integer(): "+ 1"{code}Expected this to print:{code}Notice: Scope(Class[main]): 1{code}The problem is the whitespace between the sign and the leading digit in the number; we support it for arithmetic string  \  -> integer conversions (e.g. {{notice '+ 1' + '- 1'}} results in {{0}}), so I expect `Integer.new` to be consistent with that conversion. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6314) Integer.new does not accept whitespace between sign and leading digit

2016-05-16 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6314 
 
 
 
  Integer.new does not accept whitespace between sign and leading digit  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.5.0 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2016/05/16 5:13 PM 
 
 
 

Fix Versions:
 

 PUP 4.5.1 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 
The following Puppet code: 
 
 
 
 
 
 
notice Integer.new('+ 1')
 
 
 
 
 
 
 
results in the following error: 
 
 
 
 
  

Jira (PUP-6314) Integer.new does not accept whitespace between sign and leading digit

2016-05-16 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6314 
 
 
 
  Integer.new does not accept whitespace between sign and leading digit  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Huene 
 
 
 
 
 
 
 
 
 
 The following Puppet code:{code}notice Integer.new('+ 1'){code}results in the following error:{code}Error while evaluating a Function Call, invalid value for Integer(): "+ 1"{code}Expected this to print:{code}Notice: Scope(Class[main]): 1{code}The problem is the whitespace between the sign and the leading digit in the number; we support it for arithmetic  string \-> integer  {{String}} to {{Integer}}  conversions (e.g. {{notice '+ 1' + '- 1'}} results in {{0}}), so I expect `Integer.new` to be consistent with that conversion. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.