Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Oct 22, 2023
1 parent ceb84de commit 90370d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iter/ranges_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ fn test_float_iter() {
for j, n in r {
$if macos {
tol := 2e-15
assert math.tolerance(expected[i][j], n, tol), 'got: ${expected[i][j]}, want: ${n}, tol: ${tol}'
assert math.tolerance(expected[i][j], n, tol), 'got: ${n}, want: ${expected[i][j]}, tol: ${tol}'
} $else {
assert n.eq_epsilon(expected[i][j]), 'got: n, want: ${expected[i][j]}'
assert n.eq_epsilon(expected[i][j]), 'got: ${n}, want: ${expected[i][j]}'
}
}
assert r.len == expected[i].len
Expand Down Expand Up @@ -96,9 +96,9 @@ fn test_linear_iter() {
for j, n in l {
$if macos {
tol := 2e-15
assert math.tolerance(expected[i][j], n, tol), 'got: ${expected[i][j]}, want: ${n}, tol: ${tol}'
assert math.tolerance(expected[i][j], n, tol), 'got: ${n}, want: ${expected[i][j]}'
} $else {
assert n.eq_epsilon(expected[i][j]), 'got: n, want: ${expected[i][j]}'
assert n.eq_epsilon(expected[i][j]), 'got: ${n}, want: ${expected[i][j]}'
}
}
assert l.len == expected[i].len
Expand Down

0 comments on commit 90370d7

Please sign in to comment.