Sha256: a3fad860ec88fa955db8ab200bf13a755165a7d5ad6204334da7d5b81af84dbd
Contents?: true
Size: 1.21 KB
Versions: 7
Compression:
Stored size: 1.21 KB
Contents
# NOTE: run bin/format-filters after changing this file opal_filter "Rational" do fails "Rational#coerce coerces to Rational, when given a Complex" # Expected nil == [(5/1), (3/4)] to be truthy but was false fails "Rational#coerce raises an error when passed a BigDecimal" # Expected TypeError (/BigDecimal can't be coerced into Rational/) but no exception was raised (nil was returned) fails "Rational#marshal_dump dumps numerator and denominator" fails "Rational#round with half option raise for a non-existent round mode" # TypeError: not an Integer fails "Rational#round with half option returns a Rational when the precision is greater than 0" # ArgumentError: [Rational#round] wrong number of arguments(2 for -1) fails "Rational#round with half option returns an Integer when precision is not passed" # TypeError: not an Integer fails "Rational#to_r fails when a BasicObject's to_r does not return a Rational" # NoMethodError: undefined method `nil?' for BasicObject fails "Rational#to_r raises TypeError trying to convert BasicObject" # NoMethodError: undefined method `nil?' for BasicObject fails "Rational#to_r works when a BasicObject has to_r" # NoMethodError: undefined method `nil?' for BasicObject end
Version data entries
7 entries across 7 versions & 1 rubygems