Skip to content

Commit

Permalink
Changed the assert failure text for when the normalization fails
Browse files Browse the repository at this point in the history
  • Loading branch information
feniup committed Dec 10, 2024
1 parent 9f7cec9 commit 6673aae
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ let normalize_and_assert (matrix : Matrix.t) (solution : Matrix.t) =
"The matrix to normalize and the solution have different dimensions!"
else
match Matrix.normalize matrix with
| None ->
assert_failure "The matrix is normalizable but was not normalized!"
| None -> assert_failure "The normalization returned None."
| Some reduced_matrix -> assert_equal reduced_matrix solution

(**
Expand Down

0 comments on commit 6673aae

Please sign in to comment.