Skip to content

Commit

Permalink
chore: fix notices and warnings in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Nov 16, 2024
1 parent 4c7d385 commit ac2aeee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions float/float64/gemv_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions poly/poly_test.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module poly

import math

fn test_eval() {
// ans = 2
// ans = 4.0 + 4 * 2 = 12
Expand Down
2 changes: 0 additions & 2 deletions prime/prime_test.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module prime

import math

fn test_is_prime() {
// true
assert is_prime(2)
Expand Down

0 comments on commit ac2aeee

Please sign in to comment.