The argumentsError is required in Struct.new
--------------------------------------------

                 Key: JRUBY-936
                 URL: http://jira.codehaus.org/browse/JRUBY-936
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0RC1
            Reporter: Koichiro Ohba
            Priority: Minor
         Attachments: struct.patch

Hi,

To understand details, please look at the test case and results on both MRI and 
JRuby.


{code}
require 'test/minirunit'
test_check "Test Struct"

test_exception(ArgumentError) { Struct.new }
{code}


MRI result:
{code}
$ ruby test/test_struct.rb
Test Struct : .
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Tests: 1. (Ok: 1; Failed: 0)
{code}

JRuby result:
{code}
$ jruby.bat test/test_struct.rb
Test Struct : F
--------------------------------------------------------------------------------

FAILED Test Struct 1 ArgumentError expected-- :-1
--------------------------------------------------------------------------------

Tests: 1. (Ok: 0; Failed: 1)
{code}

thank's


-- 
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

Reply via email to