Sha256: 895f256e54f3e89158183ae2f67e03839c7ee6f6475d71652901b4958b0b461b
Contents?: true
Size: 542 Bytes
Versions: 52
Compression:
Stored size: 542 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe "Fixnum#>" do it "returns true if self is greater than the given argument" do (13 > 2).should == true (-500 > -600).should == true (1 > 5).should == false (5 > 5).should == false (900 > bignum_value).should == false (5 > 4.999).should == true end it "raises an ArgumentError when given a non-Integer" do lambda { 5 > "4" }.should raise_error(ArgumentError) lambda { 5 > mock('x') }.should raise_error(ArgumentError) end end
Version data entries
52 entries across 52 versions & 2 rubygems