Skip to content

Commit

Permalink
math: log more diagnostic information for the failing test_pow test i…
Browse files Browse the repository at this point in the history
…n math_test.v
  • Loading branch information
spytheman committed Sep 5, 2023
1 parent 2733416 commit dee8fb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/math/math_test.v
Expand Up @@ -851,7 +851,8 @@ fn test_pow() {
]
for i := 0; i < vfpow_sc_.len; i++ {
f := pow(vfpow_sc_[i][0], vfpow_sc_[i][1])
assert alike(pow_sc_[i], f), 'pow_sc_[${i}] = ${pow_sc_[i]}, f = ${f}'
eprintln('> i: ${i:3} | vfpow_sc_[i][0]: ${vfpow_sc_[i][0]:10}, vfpow_sc_[i][1]: ${vfpow_sc_[i][1]:10} | pow_sc_[${i}] = ${pow_sc_[i]}, f = ${f}')
assert alike(pow_sc_[i], f), 'i: ${i:3} | vfpow_sc_[i][0]: ${vfpow_sc_[i][0]:10}, vfpow_sc_[i][1]: ${vfpow_sc_[i][1]:10} | pow_sc_[${i}] = ${pow_sc_[i]}, f = ${f}'
}
}

Expand Down

0 comments on commit dee8fb9

Please sign in to comment.