@@ -9,16 +9,14 @@ function all_tests(a, b, c, d, e, f, g)
9
9
e_copy = deepcopy (e)
10
10
f_copy = deepcopy (f)
11
11
g_copy = deepcopy (g)
12
- # Remove exclude in v0.3.4
13
- exclude = [" scalar_uniform_scaling" ]
14
12
@testset " Scalar" begin
15
- MA. Test. scalar_test (a, exclude = exclude )
16
- MA. Test. scalar_test (b, exclude = exclude )
17
- MA. Test. scalar_test (c, exclude = exclude )
18
- MA. Test. scalar_test (d, exclude = exclude )
19
- MA. Test. scalar_test (e, exclude = exclude )
20
- MA. Test. scalar_test (f, exclude = exclude )
21
- MA. Test. scalar_test (g, exclude = exclude )
13
+ MA. Test. scalar_test (a)
14
+ MA. Test. scalar_test (b)
15
+ MA. Test. scalar_test (c)
16
+ MA. Test. scalar_test (d)
17
+ MA. Test. scalar_test (e)
18
+ MA. Test. scalar_test (f)
19
+ MA. Test. scalar_test (g)
22
20
end
23
21
@test isequal (a, a_copy)
24
22
@test isequal (b, b_copy)
@@ -59,13 +57,11 @@ function all_tests(a, b, c, d, e, f, g)
59
57
@test isequal (c, c_copy)
60
58
@test isequal (d, d_copy)
61
59
@test isequal (e, e_copy)
62
- # Remove exclude in v0.3.4
63
- exclude = [" matrix_uniform_scaling" , " symmetric_matrix_uniform_scaling" ]
64
60
@testset " Matrix" begin
65
- MA. Test. array_test ([a b; c d], exclude = exclude )
66
- MA. Test. array_test ([c e; e d], exclude = exclude )
67
- MA. Test. array_test ([a b c; b c a; a b a], exclude = exclude )
68
- MA. Test. array_test ([d b c; d c e; e b a], exclude = exclude )
61
+ MA. Test. array_test ([a b; c d])
62
+ MA. Test. array_test ([c e; e d])
63
+ MA. Test. array_test ([a b c; b c a; a b a])
64
+ MA. Test. array_test ([d b c; d c e; e b a])
69
65
end
70
66
@test isequal (a, a_copy)
71
67
@test isequal (b, b_copy)
93
89
end
94
90
95
91
@testset " MutableArithmetics with terms in $T " for T in [Int, BigInt]
96
- # Reenable for v0.3.4
97
- # if MA.mutability(T) isa MA.IsMutable && MA.mutability(typeof(x * y)) isa MA.IsMutable
98
- # @testset "Int" begin
99
- # MA.Test.int_test(termtype(x, T), exclude = ["int_add", "int_add_mul", "int_zero"])
100
- # end
101
- # end
92
+ if MA. mutability (T) isa MA. IsMutable && MA. mutability (typeof (x * y)) isa MA. IsMutable
93
+ @testset " Int" begin
94
+ MA. Test. int_test (termtype (x, T), exclude = [" int_add" , " int_add_mul" , " int_zero" ])
95
+ end
96
+ end
102
97
a = T (2 ) * x^ 2
103
98
b = T (4 ) * y^ 2
104
99
c = T (3 ) * x
@@ -110,12 +105,11 @@ end
110
105
end
111
106
112
107
@testset " MutableArithmetics with polynomials in $T " for T in [Int, BigInt]
113
- # Reenable for v0.3.4
114
- # if MA.mutability(T) isa MA.IsMutable
115
- # @testset "Int" begin
116
- # MA.Test.int_test(polynomialtype(x, T))
117
- # end
118
- # end
108
+ if MA. mutability (T) isa MA. IsMutable
109
+ @testset " Int" begin
110
+ MA. Test. int_test (polynomialtype (x, T))
111
+ end
112
+ end
119
113
a = T (2 ) * x^ 2 + T (3 ) * x * y + T (4 ) * y
120
114
b = T (4 ) * y^ 2 - T (1 ) * x * y + T (4 ) * x
121
115
c = T (1 ) * x^ 2 + T (3 ) * x - T (4 )
0 commit comments