Skip to content

Commit

Permalink
Enable unbroken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Apr 18, 2024
1 parent 1632be4 commit 7e87e25
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/arithmetic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ end
@test one(fRG) == g
@test iszero(zero(fRG))
@test zero(g) == zero(fRG)
@test_broken iszero(0 * g)
@test iszero(0 * g)

@testset "Translations between bases" begin
Z = zero(RG)
Expand Down Expand Up @@ -216,7 +216,7 @@ end
@test coeffs(fZ) == coeffs(Z, basis(fRG))

@test coeffs(2 * X * Y) == coeffs(MA.operate_to!(Z, *, Z, 2))
@test_broken coeffs(2 * fX * fY) ==
@test coeffs(2 * fX * fY) ==
coeffs(MA.operate_to!(fZ, *, fZ, 2))
end
end
Expand Down Expand Up @@ -287,7 +287,7 @@ end
y = spzeros(length(basis(fRG)))
y[1:k] .= 1
Y = AlgebraElement(y, fRG)
@test_broken Y = sum(fRG(basis(fRG)[i]) for i in 1:k)
@test Y == sum(fRG(basis(fRG)[i]) for i in 1:k)

@test Y isa AlgebraElement

Expand Down Expand Up @@ -321,15 +321,15 @@ end
@static if VERSION v"1.9"
YY = deepcopy(Y)
@test_broken @allocations(MA.operate_to!(YY, +, Y, YY)) == 0
@test_broken YY == Y + Y
@test YY == Y + Y

YY = deepcopy(Y)
@test_broken @allocations(MA.operate_to!(YY, +, YY, Y)) == 0
@test_broken YY == Y + Y
@test YY == Y + Y

@test_broken @allocations(MA.operate_to!(YY, +, Y, deepcopy(Y))) ==
0
@test_broken YY == Y + Y
@test YY == Y + Y

@test @allocations(MA.operate_to!(YY, *, Y, Y)) 40
@test YY == Y * Y
Expand Down

0 comments on commit 7e87e25

Please sign in to comment.