Sha256: 31b594a62e75572a444ef7b91129db45ea136b6e13db008260b1630dc1679b72

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

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"

  fails "Kernel.Float returns a Float for Complex with only a real part"
  fails "Kernel.Float raises a RangeError when passed a Complex argument"
  fails "Kernel#Float returns a Float for Complex with only a real part"
  fails "Kernel#Float raises a RangeError when passed a Complex argument"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.8.1 spec/filters/bugs/kernel.rb
opal-0.8.1.rc1 spec/filters/bugs/kernel.rb
opal-0.8.0 spec/filters/bugs/kernel.rb
opal-0.8.0.rc3 spec/filters/bugs/kernel.rb
opal-0.8.0.rc2 spec/filters/bugs/kernel.rb
opal-0.8.0.rc1 spec/filters/bugs/kernel.rb