Skip to content

Commit 831b6c2

Browse files
committed
Remove global implementation in tests
1 parent 0203f83 commit 831b6c2

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

test/runtests.jl

-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ function try_import(name::Symbol)
1616
end
1717
end
1818

19-
global implementation = :DynamicPolynomials
2019
if try_import(:DynamicPolynomials)
2120
Mod = DynamicPolynomials
2221
include("commutativetests.jl")
2322
include("noncommutativetests.jl")
2423
end
2524

26-
global implementation = :TypedPolynomials
2725
if try_import(:TypedPolynomials)
2826
Mod = TypedPolynomials
2927
include("commutativetests.jl")

test/show.jl

+4-6
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
@test sprint(show, sum(i*x[i]^i for i=1:10)) == "10x₉¹⁰ + 9x₈⁹ + 8x₇⁸ + 7x₆⁷ + 6x₅⁶ + 5x₄⁵ + 4x₃⁴ + 3x₂³ + 2x₁² + x₀"
3131
@test sprint(show, "text/latex", sum(i*x[i]^i for i=1:10)) == "10x_{9}^{10} + 9x_{8}^{9} + 8x_{7}^{8} + 7x_{6}^{7} + 6x_{5}^{6} + 5x_{4}^{5} + 4x_{3}^{4} + 3x_{2}^{3} + 2x_{1}^{2} + x_{0}"
3232

33-
#This is only supported by DynamicPolynomials so far
34-
@static if implementation == :DynamicPolynomials
35-
Mod.@polyvar A[1:2, 1:2]
36-
@test sprint(show, sum(A)) == "A₁₋₁ + A₂₋₁ + A₁₋₂ + A₂₋₂"
37-
@test sprint(show, "text/latex", sum(A)) == "A_{1,1} + A_{2,1} + A_{1,2} + A_{2,2}"
38-
end
33+
# #This is only supported by DynamicPolynomials so far
34+
# Mod.@polyvar A[1:2, 1:2]
35+
# @test sprint(show, sum(A)) == "A₁₋₁ + A₂₋₁ + A₁₋₂ + A₂₋₂"
36+
# @test sprint(show, "text/latex", sum(A)) == "A_{1,1} + A_{2,1} + A_{1,2} + A_{2,2}"
3937
end

0 commit comments

Comments
 (0)