Skip to content

Instantly share code, notes, and snippets.

@kronos
Created April 6, 2010 22:54
Show Gist options
  • Select an option

  • Save kronos/358232 to your computer and use it in GitHub Desktop.

Select an option

Save kronos/358232 to your computer and use it in GitHub Desktop.
diff --git a/spec/ruby/core/fixnum/left_shift_spec.rb b/spec/ruby/core/fixnum/left_shift_spec.rb
index 38b8bcf..8aa5d25 100644
--- a/spec/ruby/core/fixnum/left_shift_spec.rb
+++ b/spec/ruby/core/fixnum/left_shift_spec.rb
@@ -24,6 +24,7 @@ describe "Fixnum#<<" do
it "coerces result on overflow and return self shifted left other bits" do
(9 << 4.2).should == 144
(6 << 0xff).should == 347376267711948586270712955026063723559809953996921692118372752023739388919808
+ (-4518325415524767873 << 32).should == -19406059892364488692526481408
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment