[RubySpec] command line '-e' failures
-------------------------------------

                 Key: JRUBY-4694
                 URL: http://jira.codehaus.org/browse/JRUBY-4694
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.8.7, RubySpec
    Affects Versions: JRuby 1.5
         Environment: trunk, Java 6, Mac OS X 10.6.3
            Reporter: Hiro Asari


Upon bumping the patch level to 249, we fail these specs:

{noformat}
$ jruby spec/mspec/bin/mspec spec/ruby/command_line/dash_e_spec.rb 
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 249) (2010-04-05 1c470fe) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
....FF

1)
The -e command line option with -n and a Fixnum range mimics an awk conditional 
by comparing an inclusive-end range with $. FAILED
Expected "1\n2\n3\n4\n5\n"
 to equal "2\n3\n"

/Users/asari/Development/src/jruby/spec/ruby/command_line/dash_e_spec.rb:29
/Users/asari/Development/src/jruby/spec/ruby/command_line/dash_e_spec.rb:3
/Users/asari/Development/src/jruby/spec/ruby/command_line/dash_e_spec.rb:56:in 
`load'

2)
The -e command line option with -n and a Fixnum range mimics a sed conditional 
by comparing an exclusive-end range with $. FAILED
Expected "1\n2\n3\n4\n5\n"
 to equal "2\n3\n"

/Users/asari/Development/src/jruby/spec/ruby/command_line/dash_e_spec.rb:34
/Users/asari/Development/src/jruby/spec/ruby/command_line/dash_e_spec.rb:3
/Users/asari/Development/src/jruby/spec/ruby/command_line/dash_e_spec.rb:56:in 
`load'

Finished in 1.209000 seconds

1 file, 6 examples, 6 expectations, 2 failures, 0 errors
{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


Reply via email to