Sha256: 6884864a5f57a2b9a2d96ef9adeeb8bcf413635d9b3d94a107bd842098688c8c

Contents?: true

Size: 266 Bytes

Versions: 6

Compression:

Stored size: 266 Bytes

Contents

describe "TrueClass#&" do
  it "returns false if other is nil or false, otherwise true" do
    (true & true).should == true
    (true & false).should == false
    (true & nil).should == false
    (true & "").should == true
    (true & 'x').should == true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.3.2 gems/core/spec/core/true/and_spec.rb
opal-0.3.1 gems/core/spec/core/true/and_spec.rb
opal-0.3.0 gems/core/spec/core/true/and_spec.rb
opal-0.2.2 opals/opal/opal/spec/core/true/and_spec.rb
opal-0.2.0 opals/opal/opal/spec/core/true/and_spec.rb
opal-0.1.0 opals/opal/spec/core/true/and_spec.rb