Sha256: a51dbc3f16f5e3bae5f3a79cb5914809eb774cbae58b6ef28f7996fa5a09379a

Contents?: true

Size: 272 Bytes

Versions: 6

Compression:

Stored size: 272 Bytes

Contents

describe "FalseClass#^" do
  it "returns false if other is nil or false, otherwise true" do
    (false ^ false).should == false
    (false ^ true).should == true
    (false ^ nil).should == false
    (false ^ "").should == true
    (false ^ '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/false/xor_spec.rb
opal-0.3.1 gems/core/spec/core/false/xor_spec.rb
opal-0.3.0 gems/core/spec/core/false/xor_spec.rb
opal-0.2.2 opals/opal/opal/spec/core/false/xor_spec.rb
opal-0.2.0 opals/opal/opal/spec/core/false/xor_spec.rb
opal-0.1.0 opals/opal/spec/core/false/xor_spec.rb