Empty expressions in Arrays handled incorrectly
-----------------------------------------------
Key: JRUBY-2837
URL: http://jira.codehaus.org/browse/JRUBY-2837
Project: JRuby
Issue Type: Bug
Components: RubySpec
Affects Versions: JRuby 1.1.3
Environment: Latest JRuby
Reporter: Vladimir Sizikov
Assignee: Thomas E Enebo
[1, (), 3] #==> [1, 3], while should be [1, nil, 3]
also:
a = 1, (), 3 #==> [1, 3], but should be [1, nil, 3]
This leads to two rubyspec failures:
{noformat}
1)
Array literals [] treats empty expressions as nil elements FAILED
Expected 2
to equal nil
/opt/work/rubyspec.git/./1.8/language/array_spec.rb:17
/opt/work/rubyspec.git/./1.8/language/array_spec.rb:4
/opt/work/rubyspec.git/./1.8/language/array_spec.rb:54:in `load'
2)
Single assignment If rhs has multiple arguments, lhs becomes an Array of them
FAILED
Expected [1, 3]
to equal [1, nil, 3]
/opt/work/rubyspec.git/./1.8/language/variables_spec.rb:678
/opt/work/rubyspec.git/./1.8/language/variables_spec.rb:657
/opt/work/rubyspec.git/./1.8/language/variables_spec.rb:54:in `load'
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email