Sha256: 6732345b0cdba4fb3464ba2a020ca8ad6cfb049eb6cb124429ea7220f53ae37c

Contents?: true

Size: 267 Bytes

Versions: 6

Compression:

Stored size: 267 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

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