Regexp#to_s behaves differently than MRI 1.8 or MRI 1.9
-------------------------------------------------------
Key: JRUBY-2683
URL: http://jira.codehaus.org/browse/JRUBY-2683
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.2
Environment: Latest JRuby
Reporter: Vladimir Sizikov
Assignee: Marcin Mielzynski
Fix For: JRuby 1.1.3
JRuby fails the following rubyspec: /(?:.)/.to_s.should == "(?-mix:.)"
See also http://rubyspec.org/issues/show/24
{noformat}
mspec -t j spec/ruby/1.8/core/regexp/to_s_spec.rb
F
1)
Regexp#to_s returns a string in (?xxx:yyy) notation FAILED
Expected "(?-mix:(?:.))"
to equal "(?-mix:.)"
/opt/work/mspec.git/lib/mspec/expectations/expectations.rb:10:in `fail_with'
/opt/work/mspec.git/lib/mspec/matchers/base.rb:9:in `=='
/opt/work/./spec/ruby/1.8/core/regexp/to_s_spec.rb:9
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:60:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:28:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/./spec/ruby/1.8/core/regexp/to_s_spec.rb:3
/opt/work/./spec/ruby/1.8/core/regexp/to_s_spec.rb:49:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:35:in `process'
/opt/work/mspec.git/lib/mspec/commands/mspec-run.rb:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:8
Finished in 0.079000 seconds
1 file, 1 example, 5 expectations, 1 failure, 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