Sha256: 2eaaab652ffd942f4643cf35f79a3057c5928bcb27f7d6be7e4a00b8c730741f

Contents?: true

Size: 258 Bytes

Versions: 23

Compression:

Stored size: 258 Bytes

Contents

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
opal-0.3.41 spec/core/nil/xor_spec.rb
opal-0.3.40 spec/core/nil/xor_spec.rb
opal-0.3.39 spec/core/nil/xor_spec.rb
opal-0.3.38 spec/core/nil/xor_spec.rb
opal-0.3.37 spec/core/nil/xor_spec.rb
opal-0.3.36 spec/core/nil/xor_spec.rb
opal-0.3.35 spec/core/nil/xor_spec.rb
opal-0.3.34 spec/core/nil/xor_spec.rb
opal-0.3.33 spec/core/nil/xor_spec.rb
opal-0.3.32 spec/core/nil/xor_spec.rb
opal-0.3.31 spec/core/nil/xor_spec.rb
opal-0.3.30 spec/core/nil/xor_spec.rb
opal-0.3.29 spec/core/nil/xor_spec.rb
opal-0.3.28 spec/core/nil/xor_spec.rb
opal-0.3.27 spec/core/nil/xor_spec.rb
opal-0.3.26 spec/core/nil/xor_spec.rb
opal-0.3.25 spec/core/nil/xor_spec.rb
opal-0.3.22 spec/core/nil/xor_spec.rb
opal-0.3.21 test/core/nil/xor_spec.rb
opal-0.3.20 test/core/nil/xor_spec.rb