Sha256: 8c2ee776410bb34c47c93c38f19935b3a9378cee83213a987d39c57008bfd53b

Contents?: true

Size: 207 Bytes

Versions: 7

Compression:

Stored size: 207 Bytes

Contents

describe "Case statement" do
  it "works with JS object-wrapped values" do
    a = false
    objwr = `new String("abc")`

    case objwr
    when "abc"
      a = true
    end

    a.should == true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 spec/opal/core/language/case_spec.rb
opal-1.8.2 spec/opal/core/language/case_spec.rb
opal-1.8.1 spec/opal/core/language/case_spec.rb
opal-1.8.0 spec/opal/core/language/case_spec.rb
opal-1.8.0.beta1 spec/opal/core/language/case_spec.rb
opal-1.7.4 spec/opal/core/language/case_spec.rb
opal-1.8.0.alpha1 spec/opal/core/language/case_spec.rb