Skip to content

Commit

Permalink
[JVM] Unfudge now passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed May 8, 2018
1 parent 959cc3f commit 9c75d46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions S24-testing/10-is-approx.t
Expand Up @@ -74,14 +74,12 @@ subtest 'abs-tol + rel-tol version + optional description', {
is-approx 1e0, 1e1, :abs-tol<9>, :rel-tol<.9>;
is-approx 1e2, 1e3, :abs-tol<900>, :rel-tol<.9>;
is-approx 1e3, 1e5, :abs-tol<99e3>, :rel-tol<.99>;
#?rakudo.jvm todo 'expected approximately: 1.5, got: 1'
is-approx 1, 1.5, :abs-tol<1>, :rel-tol<.4>;

is-approx 0, 0, :abs-tol<9>, :rel-tol<.9>, 'test desc one';
is-approx 1e0, 1e1, :abs-tol<9>, :rel-tol<.9>, 'test desc one';
is-approx 1e2, 1e3, :abs-tol<900>, :rel-tol<.9>, 'test desc two';
is-approx 1e3, 1e5, :abs-tol<99e3>, :rel-tol<.99>, 'test desc three';
#?rakudo.jvm todo 'expected approximately: 1.5, got: 1'
is-approx 1, 1.5, :abs-tol<1>, :rel-tol<.4>, 'test desc four';

check-fail {is-approx 1, 10, :abs-tol<5>, :rel-tol<.9>; };
Expand Down Expand Up @@ -113,19 +111,15 @@ subtest 'abs tol is correctly calculated', {
}

subtest 'rel tol is correctly calculated', {
#?rakudo.jvm todo 'wrong by factor 10'
is-approx 1, 10, :rel-tol<.9>;
check-fail { is-approx 1, 10 + 1e-10, :rel-tol<.9> };

#?rakudo.jvm todo 'wrong by factor 10'
is-approx 10, 1, :rel-tol<.9>;
check-fail { is-approx 10 + 1e-10, 1, :rel-tol<.9> };

#?rakudo.jvm todo 'wrong by factor 10'
is-approx -1, -10, :rel-tol<.9>;
check-fail { is-approx -1, -10 - 1e-10, :rel-tol<.9> };

#?rakudo.jvm todo 'wrong by factor 10'
is-approx 10, 1, :rel-tol<.9>;
check-fail { is-approx -10 - 1e-10, -1, :rel-tol<.9> };
}
1 change: 0 additions & 1 deletion S32-num/rat.t
Expand Up @@ -436,7 +436,6 @@ subtest '.norm returns reduced Rat' => {
}
}

#?rakudo.jvm skip 'Type check failed in binding to "nu"; expected Int but got Str ("42.0")'
subtest '.Rat/.FatRat coercers' => {
my @values =
42, <42>, 42e0, <42e0>, 42.0, <42.0>, <42+0i>, < 42+0i>,
Expand Down

0 comments on commit 9c75d46

Please sign in to comment.