Skip to content

Commit

Permalink
Update src/Matrix.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Max Horn <max@quendi.de>
  • Loading branch information
lgoettgens and fingolfin committed Sep 20, 2023
1 parent 83ea72e commit b450197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6821,7 +6821,7 @@ function matrix(arr::AbstractMatrix{T}) where {T<:NCRingElem}
r, c = size(arr)
(r < 0 || c < 0) && error("Array must be non-empty")
R = parent(arr[1, 1])
all(e -> parent(e) === R, arr) || errpr("Non-compatible elements")
all(e -> parent(e) === R, arr) || error("Non-compatible elements")
return matrix(R, arr)

Check warning on line 6825 in src/Matrix.jl

View check run for this annotation

Codecov / codecov/patch

src/Matrix.jl#L6820-L6825

Added lines #L6820 - L6825 were not covered by tests
end

Expand Down

0 comments on commit b450197

Please sign in to comment.