Sha256: 55f034b48c9f04b2f9a867879e8b6cc0930072131a9952e79f47d83c3d78f95f

Contents?: true

Size: 191 Bytes

Versions: 21

Compression:

Stored size: 191 Bytes

Contents

describe 'Hash' do
  it 'works with object-strings with regards to deleting' do
    h = {`new String('a')` => 'a'}
    k = h.keys.first
    h.delete(k)
    h.inspect.should == '{}'
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
opal-1.7.4 spec/opal/core/hash_spec.rb
opal-1.7.3 spec/opal/core/hash_spec.rb
opal-1.7.2 spec/opal/core/hash_spec.rb
opal-1.7.1 spec/opal/core/hash_spec.rb
opal-1.7.0 spec/opal/core/hash_spec.rb
opal-1.7.0.rc1 spec/opal/core/hash_spec.rb
opal-1.6.1 spec/opal/core/hash_spec.rb
opal-1.6.0 spec/opal/core/hash_spec.rb
opal-1.6.0.rc1 spec/opal/core/hash_spec.rb
opal-1.6.0.alpha1 spec/opal/core/hash_spec.rb
opal-1.5.1 spec/opal/core/hash_spec.rb
opal-1.5.0 spec/opal/core/hash_spec.rb
opal-1.5.0.rc1 spec/opal/core/hash_spec.rb
opal-1.4.1 spec/opal/core/hash_spec.rb
opal-1.4.0 spec/opal/core/hash_spec.rb
opal-1.4.0.alpha1 spec/opal/core/hash_spec.rb
opal-1.3.2 spec/opal/core/hash_spec.rb
opal-1.3.1 spec/opal/core/hash_spec.rb
opal-1.3.0 spec/opal/core/hash_spec.rb
opal-1.3.0.rc1 spec/opal/core/hash_spec.rb