From dee8fb99c5f3cb175916bd30299b0e072fef252b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 5 Sep 2023 12:38:28 +0300 Subject: [PATCH] math: log more diagnostic information for the failing test_pow test in math_test.v --- vlib/math/math_test.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/math/math_test.v b/vlib/math/math_test.v index cbec31426ea52a..78247ecc4890fd 100644 --- a/vlib/math/math_test.v +++ b/vlib/math/math_test.v @@ -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}' } }