Skip to content

Commit

Permalink
Don't try to instantiate MatSpaceElem for ZZRingElem etc. (#1944)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Nov 19, 2024
1 parent c36982a commit 482ff1e
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 66 deletions.
6 changes: 0 additions & 6 deletions test/arb/ComplexMat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{ComplexFieldElem}(CC, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{ComplexFieldElem}
end
end

@testset "ComplexMatrix.printing" begin
Expand Down
6 changes: 0 additions & 6 deletions test/arb/RealMat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{RealFieldElem}(RR, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{RealFieldElem}
end
end

@testset "RealMatrix.printing" begin
Expand Down
6 changes: 0 additions & 6 deletions test/arb/acb_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{AcbFieldElem}(CC, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{AcbFieldElem}
end
end

@testset "AcbMatrix.printing" begin
Expand Down
6 changes: 0 additions & 6 deletions test/arb/arb_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{ArbFieldElem}(RR, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{ArbFieldElem}
end
end

@testset "ArbMatrix.printing" begin
Expand Down
6 changes: 0 additions & 6 deletions test/flint/fmpq_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{QQFieldElem}(QQ, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{QQFieldElem}
end
end

@testset "QQMatrix.is_zero_entry" begin
Expand Down
6 changes: 0 additions & 6 deletions test/flint/fmpz_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ end
@test iszero(t)
end
end

# issue #651
m = one(Generic.MatSpaceElem{ZZRingElem}(ZZ, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{ZZRingElem}
end
end

@testset "ZZMatrix.is_zero_entry" begin
Expand Down
6 changes: 0 additions & 6 deletions test/flint/fq_default_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{FqFieldElem}(F9, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{FqFieldElem}
end
end

@testset "FqMatrix.printing" begin
Expand Down
6 changes: 0 additions & 6 deletions test/flint/fq_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{FqPolyRepFieldElem}(F9, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{FqPolyRepFieldElem}
end
end

@testset "FqPolyRepMatrix.printing" begin
Expand Down
6 changes: 0 additions & 6 deletions test/flint/fq_nmod_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{fqPolyRepFieldElem}(F9, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{fqPolyRepFieldElem}
end
end

@testset "fqPolyRepMatrix.printing" begin
Expand Down
6 changes: 0 additions & 6 deletions test/flint/gfp_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{Nemo.fpFieldElem}(Z13, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{Nemo.fpFieldElem}
end
end

@testset "fpMatrix.is_zero_entry" begin
Expand Down
6 changes: 0 additions & 6 deletions test/flint/nmod_mat-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ end
t = similar(s, R, 2, 3)
@test size(t) == (2, 3)
end

# issue #651
m = one(Generic.MatSpaceElem{Nemo.zzModRingElem}(Z13, 2, 2))
for n = (m, -m, m*m, m+m, 2m)
@test n isa Generic.MatSpaceElem{Nemo.zzModRingElem}
end
end

@testset "zzModMatrix.is_zero_entry" begin
Expand Down

0 comments on commit 482ff1e

Please sign in to comment.