[macruby-changes] [4095] MacRuby/trunk/spec/frozen/core/fixnum/divide_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu May 13 18:14:59 PDT 2010
Revision: 4095
http://trac.macosforge.org/projects/ruby/changeset/4095
Author: lsansonetti at apple.com
Date: 2010-05-13 18:14:58 -0700 (Thu, 13 May 2010)
Log Message:
-----------
revert spec change now that our division is the same as MRI
Modified Paths:
--------------
MacRuby/trunk/spec/frozen/core/fixnum/divide_spec.rb
Modified: MacRuby/trunk/spec/frozen/core/fixnum/divide_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/fixnum/divide_spec.rb 2010-05-14 01:14:32 UTC (rev 4094)
+++ MacRuby/trunk/spec/frozen/core/fixnum/divide_spec.rb 2010-05-14 01:14:58 UTC (rev 4095)
@@ -6,19 +6,9 @@
(3 / 2).should == 1
end
- not_compliant_on :macruby do
- it "supports dividing negative numbers" do
- (-1 / 10).should == -1
- end
+ it "supports dividing negative numbers" do
+ (-1 / 10).should == -1
end
-
- deviates_on :macruby do
- it "supports dividing negative numbers" do
- # bc, gdb, etc. behave the same way (using the closest integer, instead
- # of the smallest one like ruby)
- (-31 / 10).should == -3
- end
- end
it "raises a ZeroDivisionError if the given argument is zero and not a Float" do
lambda { 1 / 0 }.should raise_error(ZeroDivisionError)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100513/2946e1f0/attachment.html>
More information about the macruby-changes
mailing list