Turn ConstPolyRing example into a doctest #3728
Annotations
3 errors
Run julia-actions/julia-docdeploy@v1:
docs/src/ring_interface.md#L1018
doctest failure in src/ring_interface.md:1018-1030
```jldoctest ConstPoly; filter = r".*"
using Test
include(joinpath(pathof(AbstractAlgebra), "..", "..", "test", "Rings-conformance-tests.jl"))
function test_elem(R::ConstPolyRing{elem_type(ZZ)})
n = rand(1:999)
return R(rand(-n:n))
end
test_Ring_interface(constant_polynomial_ring(ZZ))
# output
```
Subexpression:
using Test
include(joinpath(pathof(AbstractAlgebra), "..", "..", "test", "Rings-conformance-tests.jl"))
function test_elem(R::ConstPolyRing{elem_type(ZZ)})
n = rand(1:999)
return R(rand(-n:n))
end
test_Ring_interface(constant_polynomial_ring(ZZ))
Evaluated output:
Test Summary: | Pass Total Time
Ring interface for Constant polynomials over integers of type ConstPolyRing{BigInt} | 13846 13846 0.6s
Expected output:
diff =
Warning: Diff output requires color.
Test Summary: | Pass Total Time
Ring interface for Constant polynomials over integers of type ConstPolyRing{BigInt} | 13846 13846 0.6s
|
Run julia-actions/julia-docdeploy@v1:
docs/src/ring_interface.md#L1052
doctest failure in src/ring_interface.md:1052-1056
```jldoctest ConstPoly; filter = r".*"
test_EuclideanRing_interface(constant_polynomial_ring(ZZ))
# output
```
Subexpression:
test_EuclideanRing_interface(constant_polynomial_ring(ZZ))
Evaluated output:
Test Summary: | Pass Total Time
Euclidean Ring interface for Constant polynomials over integers of type ConstPolyRing{BigInt} | 2220 2220 0.1s
Expected output:
diff =
Warning: Diff output requires color.
Test Summary: | Pass Total Time
Euclidean Ring interface for Constant polynomials over integers of type ConstPolyRing{BigInt} | 2220 2220 0.1s
|
Run julia-actions/julia-docdeploy@v1
Process completed with exit code 1.
|
Loading