-
Notifications
You must be signed in to change notification settings - Fork 73
Increase code coverage #2051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
albinahlback
wants to merge
10
commits into
Nemocas:master
Choose a base branch
from
albinahlback:codecov
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Increase code coverage #2051
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
455182c
Add codecov.yml
albinahlback a577e52
Remove _is_known_via_attributes
albinahlback 6efe513
Gather show for univariate polynomials
albinahlback 6a174e4
Fix is_power(::PolyRingElem, ::Int)
albinahlback 12a5cf5
Test is_power(::PolyRingElem, ::Int)
albinahlback 3409724
Add test for julia/Matrix.jl
albinahlback 74d277d
Test sqrt for rings
albinahlback d9344cc
Fix swap_cols! for Matrix{T}
albinahlback e9e92dc
Merge branch 'master' into codecov
fingolfin d2ccfd4
Merge branch 'master' into codecov
fingolfin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,4 @@ | ||
| coverage: | ||
| precision: 2 | ||
| round: down | ||
| range: 85...95 # FIXME: We should set this one to about 90...95 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,36 @@ | ||
| @testset "Julia.Matrix.manipulation" begin | ||
| r, c = 1, 2 | ||
| A = zero_matrix(Int, r, c) | ||
| A[1, :] = [10, -2] | ||
| B = Int[10 -2] | ||
|
|
||
| @test A == B | ||
| @test number_of_rows(A) == r | ||
| @test number_of_columns(A) == c | ||
| end | ||
|
|
||
| @testset "Julia.Matrix.array_creation" begin | ||
| M = matrix_ring(ZZ, 2) | ||
| m1 = M(ZZ[1 2; 3 4]) | ||
| m2 = M(ZZ[1 0; 0 1]) | ||
| arr = Array(M, 2) | ||
| arr[1] = deepcopy(m1) | ||
| arr[2] = deepcopy(m2) | ||
| @test arr[1] == m1 | ||
| @test arr[2] == m2 | ||
| end | ||
|
|
||
| @testset "Julia.Matrix.permutations" begin | ||
| M = matrix_ring(ZZ, 2) | ||
| m0 = M([1 2; 3 4]) | ||
| m1 = M([2 3; 4 5]) | ||
| m2 = M([3 4; 5 6]) | ||
| m3 = M([4 5; 6 7]) | ||
| m = elem_type(M)[m0 m1; m2 m3] | ||
| Rm = elem_type(M)[m2 m3; m0 m1] | ||
| Cm = elem_type(M)[m1 m0; m3 m2] | ||
| rm = swap_rows(m, 2, 1) | ||
| cm = swap_cols(m, 1, 2) | ||
| @test rm == Rm | ||
| @test cm == Cm | ||
| end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.