-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also make sure other packages which only load Rings-conformance-tests.jl get them. Finally cleanup how we include Groups-conformance-tests.jl
- Loading branch information
Showing
9 changed files
with
62 additions
and
64 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 |
---|---|---|
@@ -1,19 +1,2 @@ | ||
include("Groups-conformance-tests.jl") | ||
include("Rings-conformance-tests.jl") | ||
# TODO: add more | ||
|
||
# add methods for test_elem here | ||
|
||
function test_elem(R::AbstractAlgebra.Integers{BigInt}) | ||
n = big(2)^rand(1:100) | ||
return rand(ZZ, -n:n) | ||
end | ||
|
||
function test_elem(R::AbstractAlgebra.Rationals{BigInt}) | ||
n = big(2)^rand(1:100) | ||
m = big(2)^rand(1:100) | ||
return rand(ZZ, -n:n)//rand(ZZ, 1:m) | ||
end | ||
|
||
function test_elem(R::AbstractAlgebra.GFField{Int64}) | ||
return rand(R) | ||
end |
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
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
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
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