Sha256: 42042da05ad1eca590e7059252e9905b555d755255f2d07be0a73c3ac1617731

Contents?: true

Size: 948 Bytes

Versions: 5

Compression:

Stored size: 948 Bytes

Contents

opal_filter "Struct" do
  fails "Struct#hash returns the same fixnum for structs with the same content"
  fails "Struct#initialize can be overriden"
  fails "Struct#inspect returns a string representation of some kind"
  fails "Struct#members does not override the instance accessor method"
  fails "Struct.new calls to_str on its first argument (constant name)"
  fails "Struct.new creates a new anonymous class with nil first argument"
  fails "Struct.new does not create a constant with symbol as first argument"
  fails "Struct.new fails with invalid constant name as first argument"
  fails "Struct.new on subclasses creates a constant in subclass' namespace"
  fails "Struct.new on subclasses fails with too many arguments"
  fails "Struct.new raises a TypeError if object doesn't respond to to_sym"
  fails "Struct.new raises a TypeError if object is not a Symbol"
  fails "Struct.new with a block passes same struct class to the block"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-0.9.4 spec/filters/bugs/struct.rb
opal-0.9.3 spec/filters/bugs/struct.rb
opal-0.9.2 spec/filters/bugs/struct.rb
opal-0.9.0 spec/filters/bugs/struct.rb
opal-0.9.0.rc1 spec/filters/bugs/struct.rb