summaryrefslogtreecommitdiff
path: root/spec/ruby/core/complex/integer_spec.rb
blob: 0957accb70bc301c665a289853aa8033a75545d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../../spec_helper'

describe "Complex#integer?" do
  it "returns false for a Complex with no imaginary part" do
    Complex(20).integer?.should be_false
  end

  it "returns false for a Complex with an imaginary part" do
    Complex(20,3).integer?.should be_false
  end
end