Skip to content

Commit

Permalink
fix: characteristic for CalciumField
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Aug 25, 2024
1 parent 2eecee3 commit f743ec2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/calcium/ca.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ base_ring(a::CalciumField) = Union{}

is_domain_type(::Type{CalciumFieldElem}) = true

characteristic(a::CalciumField) = 0

function deepcopy_internal(a::CalciumFieldElem, dict::IdDict)
C = a.parent
r = C()
Expand Down
2 changes: 1 addition & 1 deletion test/calcium/ca-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
@test deepcopy(t) !== t
@test deepcopy(t).parent === t.parent

@test characteristic(C) == 0
end

@testset "CalciumFieldElem.options" begin
Expand Down Expand Up @@ -419,4 +420,3 @@ end
@test_throws ErrorException rand(C, depth=2, bits=5, randtype=:gollum)

end

0 comments on commit f743ec2

Please sign in to comment.