Skip to content

Commit

Permalink
Test generic_power
Browse files Browse the repository at this point in the history
  • Loading branch information
joschmitt committed Sep 18, 2024
1 parent 31370e8 commit e0b7461
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/flint/nmod-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@ end
end
end
end

R, _ = residue_ring(ZZ, 10)
a = R(3)
@test a^ZZ(2) == R(9)
@test a^ZZ(-2) == R(9)
@test a^(ZZ(2)^64) == R(1)
@test a^(-ZZ(2)^64) == R(1)
end

@testset "zzModRingElem.comparison" begin
Expand Down

0 comments on commit e0b7461

Please sign in to comment.