diff --git a/S03-operators/arith.t b/S03-operators/arith.t index 8efff1e4d5..919be781f8 100644 --- a/S03-operators/arith.t +++ b/S03-operators/arith.t @@ -337,16 +337,13 @@ All uses of a zero modulus or divisor should 'die', and the 'Division by zero with infix:
dies and is catchable with VRef variables'; throws-like { say 0 / 0 }, X::Numeric::DivideByZero, - numerator => 0, 'Division by zero with infix: dies and is catchable (1)'; throws-like { say 3 / 0 }, X::Numeric::DivideByZero, - numerator => 3, 'Division by zero with infix: dies and is catchable (2)'; throws-like { my $x = 0; say 3.5 / $x }, X::Numeric::DivideByZero, # numerator => 3.5, # numerator is always an Int, so we get 7 'Division by zero with infix: dies and is catchable with VInt/VRat variables'; throws-like { my $x = 0; say 4 / $x }, X::Numeric::DivideByZero, - numerator => 4, 'Division by zero with infix: dies and is catchable with VRef variables'; } diff --git a/S32-num/rat.t b/S32-num/rat.t index 779dda7a7c..a93695f20c 100644 --- a/S32-num/rat.t +++ b/S32-num/rat.t @@ -331,8 +331,7 @@ is 241025348275725.3352.Str, "241025348275725.3352", 'stringification of bigish } #RT #126391 -try {say 42/(.1+.2-.3)}; -isa-ok( $!.numerator, 42, "got the answer rather than 420"); +try {say 42/(.1+.2-.3)}; isnt $!.numerator, 420, "no bogus errors"; # RT#126016 subtest '0.9999999999999999999999 to string conversions' => {