Sha256: 97d6b2fe100ce983fc05090d004b98bf1c5580b87e27f5a4d9ad6d0aa4bc2cdb

Contents?: true

Size: 1.41 KB

Versions: 10

Compression:

Stored size: 1.41 KB

Contents

# NOTE: run bin/format-filters after changing this file
opal_filter "Class" do
  fails "Class#allocate raises TypeError for #superclass"
  fails "Class#dup duplicates both the class and the singleton class"
  fails "Class#dup retains an included module in the ancestor chain for the singleton class"
  fails "Class#dup retains the correct ancestor chain for the singleton class"
  fails "Class#initialize raises a TypeError when called on BasicObject"
  fails "Class#initialize raises a TypeError when called on already initialized classes"
  fails "Class#initialize when given the Class raises a TypeError"
  fails "Class#new uses the internal allocator and does not call #allocate" # RuntimeError: allocate should not be called
  fails "Class.new raises a TypeError if passed a metaclass"
  fails_badly "Class#descendants returns a list of classes descended from self (excluding self)" # GC/Spec order issue. Expected [#<Class:0x2e77c>,  #<Class:0x2e79a>,  #<Class:0x37368>,  ModuleSpecs::Child,  ModuleSpecs::Child2,  ModuleSpecs::Grandchild] == [ModuleSpecs::Child, ModuleSpecs::Child2, ModuleSpecs::Grandchild] to be truthy but was false
  fails_badly "Class#subclasses returns a list of classes directly inheriting from self" # GC/Spec order issue. Expected [#<Class:0x2e77c>,  #<Class:0x2e79a>,  #<Class:0x37368>,  ModuleSpecs::Child,  ModuleSpecs::Child2] == [ModuleSpecs::Child, ModuleSpecs::Child2] to be truthy but was false
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
opal-1.6.1 spec/filters/bugs/class.rb
opal-1.6.0 spec/filters/bugs/class.rb
opal-1.6.0.rc1 spec/filters/bugs/class.rb
opal-1.6.0.alpha1 spec/filters/bugs/class.rb
opal-1.5.1 spec/filters/bugs/class.rb
opal-1.5.0 spec/filters/bugs/class.rb
opal-1.5.0.rc1 spec/filters/bugs/class.rb
opal-1.4.1 spec/filters/bugs/class.rb
opal-1.4.0 spec/filters/bugs/class.rb
opal-1.4.0.alpha1 spec/filters/bugs/class.rb