Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b083103ba6ac
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b21373e5bff5
Choose a head ref
  • 5 commits
  • 21 files changed
  • 1 contributor

Commits on Dec 2, 2014

  1. Copy the full SHA
    77acee0 View commit details
  2. Copy the full SHA
    f6a7b6a View commit details
  3. Copy the full SHA
    c4f37b6 View commit details
  4. Copy the full SHA
    ea81f2e View commit details
  5. Copy the full SHA
    b21373e View commit details
2 changes: 1 addition & 1 deletion spec/jruby.2.2.mspec
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ class MSpecScript
'^' + SPEC_DIR + '/core/encoding/default_internal_spec.rb',
'^' + SPEC_DIR + '/core/io/pid_spec.rb',
'^' + SPEC_DIR + '/core/kernel/at_exit_spec.rb',
'^' + SPEC_DIR + '/language/encoding_spec.rb',
'^' + SPEC_DIR + '/language/break_spec.rb',
'^' + SPEC_DIR + '/language/predefined_spec.rb',
'^' + SPEC_DIR + '/language/predefined/data_spec.rb',
]
8 changes: 8 additions & 0 deletions spec/ruby/core/exception/backtrace_spec.rb
Original file line number Diff line number Diff line change
@@ -48,4 +48,12 @@
line.should =~ /^[^ ]+\:\d+(:in `[^`]+')?$/
end
end

it "when redefined does not affect the behaviour of Exception#message" do
e = Exception.new
e.message.should == 'Exception'

def e.backtrace; []; end
e.message.should == 'Exception'
end
end
11 changes: 0 additions & 11 deletions spec/ruby/core/exception/redefining_backtrace.rb

This file was deleted.

5 changes: 5 additions & 0 deletions spec/ruby/core/float/divide_spec.rb
Original file line number Diff line number Diff line change
@@ -28,4 +28,9 @@
(0.0 / -0.0).should be_nan
(-0.0 / -0.0).should be_nan
end

it "raises a TypeError when given a non-Numeric" do
lambda { 13.0 / "10" }.should raise_error(TypeError)
lambda { 13.0 / :symbol }.should raise_error(TypeError)
end
end
5 changes: 5 additions & 0 deletions spec/ruby/core/float/gt_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,9 @@
(2.5 > 3).should == false
(45.91 > bignum_value).should == false
end

it "raises an ArgumentError when given a non-Numeric" do
lambda { 5.0 > "4" }.should raise_error(ArgumentError)
lambda { 5.0 > mock('x') }.should raise_error(ArgumentError)
end
end
5 changes: 5 additions & 0 deletions spec/ruby/core/float/gte_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,9 @@
(9.71 >= 1).should == true
(5.55382 >= 0xfabdafbafcab).should == false
end

it "raises an ArgumentError when given a non-Numeric" do
lambda { 5.0 >= "4" }.should raise_error(ArgumentError)
lambda { 5.0 >= mock('x') }.should raise_error(ArgumentError)
end
end
5 changes: 5 additions & 0 deletions spec/ruby/core/float/lt_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,9 @@
(192.6 < -500).should == false
(-0.12 < 0x4fffffff).should == true
end

it "raises an ArgumentError when given a non-Numeric" do
lambda { 5.0 < "4" }.should raise_error(ArgumentError)
lambda { 5.0 < mock('x') }.should raise_error(ArgumentError)
end
end
5 changes: 5 additions & 0 deletions spec/ruby/core/float/lte_spec.rb
Original file line number Diff line number Diff line change
@@ -7,4 +7,9 @@
(0.0 <= 0.0).should == true
(9_235.9 <= bignum_value).should == true
end

it "raises an ArgumentError when given a non-Numeric" do
lambda { 5.0 <= "4" }.should raise_error(ArgumentError)
lambda { 5.0 <= mock('x') }.should raise_error(ArgumentError)
end
end
5 changes: 5 additions & 0 deletions spec/ruby/core/float/multiply_spec.rb
Original file line number Diff line number Diff line change
@@ -6,4 +6,9 @@
(6712.5 * 0.25).should be_close(1678.125, TOLERANCE)
(256.4096 * bignum_value).should be_close(2364961134621118431232.000, TOLERANCE)
end

it "raises a TypeError when given a non-Numeric" do
lambda { 13.0 * "10" }.should raise_error(TypeError)
lambda { 13.0 * :symbol }.should raise_error(TypeError)
end
end
1 change: 0 additions & 1 deletion spec/ruby/core/symbol/encoding_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path("../versions/encoding_1.9", __FILE__)

describe "Symbol#encoding for ASCII symbols" do
it "is US-ASCII" do
4 changes: 0 additions & 4 deletions spec/ruby/language/def_spec.rb
Original file line number Diff line number Diff line change
@@ -572,7 +572,3 @@ def some_method; end
end
end
end

ruby_version_is "2.0" do
require File.expand_path('../versions/def_2.0.rb', __FILE__)
end
File renamed without changes.
1 change: 1 addition & 0 deletions spec/truffle/tags/core/exception/backtrace_tags.txt
Original file line number Diff line number Diff line change
@@ -7,3 +7,4 @@ fails:Exception#backtrace includes the name of the method from where self raised
fails:Exception#backtrace includes the filename of the location immediately prior to where self raised in the second element
fails:Exception#backtrace includes the line number of the location immediately prior to where self raised in the second element
fails:Exception#backtrace contains lines of the same format for each prior position in the stack
fails:Exception#backtrace when redefined does not affect the behaviour of Exception#message
1 change: 1 addition & 0 deletions spec/truffle/tags/core/float/divide_tags.txt
Original file line number Diff line number Diff line change
@@ -3,3 +3,4 @@ fails:Float#/ properly coerces objects
fails:Float#/ returns +Infinity when dividing non-zero by zero of the same sign
fails:Float#/ returns -Infinity when dividing non-zero by zero of opposite sign
fails:Float#/ returns NaN when dividing zero by zero
fails:Float#/ raises a TypeError when given a non-Numeric
1 change: 1 addition & 0 deletions spec/truffle/tags/core/float/multiply_tags.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
fails:Float#* returns self multiplied by other
fails:Float#* raises a TypeError when given a non-Numeric
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/symbol/encoding_tags.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
fails:Symbol#encoding for UTF-8 symbols is UTF-8
fails:Symbol#encoding for UTF-8 symbols is UTF-8 after converting to string
fails:Symbol#encoding for ASCII symbols is US-ASCII
fails:Symbol#encoding for ASCII symbols is US-ASCII after converting to string
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/symbol/versions/encoding_1.9_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:Symbol#encoding for UTF-8 symbols is UTF-8
fails:Symbol#encoding for UTF-8 symbols is UTF-8 after converting to string
1 change: 0 additions & 1 deletion spec/truffle/truffle.mspec
Original file line number Diff line number Diff line change
@@ -102,7 +102,6 @@ class MSpecScript
"^spec/ruby/core/string/match_spec.rb",
"^spec/ruby/core/string/modulo_spec.rb",
"^spec/ruby/core/string/rindex_spec.rb",
"^spec/ruby/core/symbol/encoding_spec.rb",
"^spec/ruby/core/thread/raise_spec.rb",
]