aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/false/and_spec.rb
blob: a949c0250309b40f28b010d379d698115ff0a7fa (plain)
1
2
3
4
5
6
7
8
9
10
11
require File.expand_path('../../../spec_helper', __FILE__)

describe "FalseClass#&" do
  it "returns false" do
    (false & false).should == false
    (false & true).should == false
    (false & nil).should == false
    (false & "").should == false
    (false & mock('x')).should == false
  end
end