Sha256: 2452f3d8c63efe7e1695c00c2daaf380ad0c526c4d5b7d620013e050ed8fb659

Contents?: true

Size: 883 Bytes

Versions: 1

Compression:

Stored size: 883 Bytes

Contents

opal_filter "Kernel" do
  fails "Kernel.Array does not call #to_a on an Array" #something funky with the spec itself
  fails "Kernel#Array does not call #to_a on an Array" #something funky with the spec itself

  fails "Kernel.String raises a TypeError if #to_s does not exist"
  fails "Kernel.String raises a TypeError if respond_to? returns false for #to_s"
  fails "Kernel.String raises a TypeError if #to_s is not defined, even though #respond_to?(:to_s) returns true"
  fails "Kernel.String calls #to_s if #respond_to?(:to_s) returns true"
  fails "Kernel#String raises a TypeError if #to_s does not exist"
  fails "Kernel#String raises a TypeError if respond_to? returns false for #to_s"
  fails "Kernel#String raises a TypeError if #to_s is not defined, even though #respond_to?(:to_s) returns true"
  fails "Kernel#String calls #to_s if #respond_to?(:to_s) returns true"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-0.8.0.beta1 spec/filters/bugs/kernel.rb