-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57ed2c2
commit 77b2fdf
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@testset "Integers" begin | ||
|
||
|
||
@test is_commutative(ZZ) | ||
|
||
@test modord(2,3) == 2 | ||
|
||
@test modord(ZZ(2),ZZ(3)) == ZZ(2) | ||
|
||
@test sort(euler_phi_inv(ZZ(4))) == [ZZ(5), ZZ(8), ZZ(10), ZZ(12)] | ||
|
||
@test Hecke.is_prime_power(ZZ(8)) | ||
|
||
@test Hecke.is_prime_power(8) | ||
|
||
@test sort(euler_phi_inv(2)) == [3,4,6] | ||
|
||
@test euler_phi(ZZ(5)) == ZZ(4) | ||
|
||
@test carmichael_lambda(ZZ(8)) == ZZ(2) | ||
|
||
@test sort(evaluate.(Hecke.euler_phi_inv_fac_elem(ZZ(4)))) == ZZ.([5, 8 ,10 ,12]) | ||
|
||
@test carmichael_lambda(ZZ(1*2^3)) == ZZ(2) | ||
|
||
@test carmichael_lambda(8) == 2 | ||
|
||
@test sort(Hecke.squarefree_up_to(2)) == [1,2] | ||
|
||
@test support(QQ(2)) == [2] | ||
|
||
|
||
|
||
end | ||
|