From ac2aeee31c52ef619df853c73a98f522177323a0 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 16 Nov 2024 11:16:19 +0200 Subject: [PATCH] chore: fix notices and warnings in the tests --- float/float64/gemv_test.v | 4 ++-- poly/poly_test.v | 2 -- prime/prime_test.v | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/float/float64/gemv_test.v b/float/float64/gemv_test.v index 278d2083a..5289c9e58 100644 --- a/float/float64/gemv_test.v +++ b/float/float64/gemv_test.v @@ -563,9 +563,9 @@ fn dgemvcomp(mut test DgemvCase, trans bool, case DgemvSubcase) { xg, yg = guard_inc_vector(test_x, x_gd_val, inc.x, gd_ln), guard_inc_vector(test_y, y_gd_val, inc.y, gd_ln) - x, y = xg[gd_ln..xg.len - gd_ln], yg[gd_ln..yg.len - gd_ln] + x, y = xg[gd_ln..xg.len - gd_ln].clone(), yg[gd_ln..yg.len - gd_ln].clone() ag = guard_vector(test.a, a_gd_val, gd_ln) - a = ag[gd_ln..ag.len - gd_ln] + a = ag[gd_ln..ag.len - gd_ln].clone() if trans { gemv_t(u32(test.m), u32(test.n), case.alpha, a, lda, x, u32(inc.x), case.beta, mut diff --git a/poly/poly_test.v b/poly/poly_test.v index b9c25cdb2..2df671a65 100644 --- a/poly/poly_test.v +++ b/poly/poly_test.v @@ -1,7 +1,5 @@ module poly -import math - fn test_eval() { // ans = 2 // ans = 4.0 + 4 * 2 = 12 diff --git a/prime/prime_test.v b/prime/prime_test.v index ecfc7fb50..eaca3984f 100644 --- a/prime/prime_test.v +++ b/prime/prime_test.v @@ -1,7 +1,5 @@ module prime -import math - fn test_is_prime() { // true assert is_prime(2)