Skip to content

Commit

Permalink
fix: remove unnecessary mut in norm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Soptq committed Jan 26, 2024
1 parent 5e5c2dd commit 391b945
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/linalg/src/tests/norm_test.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@ use alexandria_linalg::norm::norm;
#[test]
#[available_gas(2000000)]
fn norm_test_1() {
let mut array: Array<u128> = array![3, 4];
let array: Array<u128> = array![3, 4];
assert(norm(array.span(), 2, 10) == 5, 'invalid l2 norm');
}

#[test]
#[available_gas(2000000)]
fn norm_test_2() {
let mut array: Array<u128> = array![3, 4];
let array: Array<u128> = array![3, 4];
assert(norm(array.span(), 1, 10) == 7, 'invalid l1 norm');
}

#[test]
#[available_gas(2000000)]
fn norm_test_3() {
let mut array: Array<u128> = array![3, 4];
let array: Array<u128> = array![3, 4];
assert(norm(array.span(), 0, 10) == 2, 'invalid l1 norm');
}

#[test]
#[available_gas(2000000)]
fn norm_test_into() {
let mut array: Array<u32> = array![3, 4];
let array: Array<u32> = array![3, 4];
assert(norm(array.span(), 2, 10) == 5, 'invalid l2 norm');
}

0 comments on commit 391b945

Please sign in to comment.