Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Jan 4, 2024
1 parent 5bd052f commit d02b98f
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions experimental/LieAlgebras/test/LieAlgebraModule-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,13 @@
elseif k == 2
a = V()
b = V()
while iszero(a) || iszero(b) || a == b
while iszero(a) ||
iszero(b) ||
can_solve(
Oscar.LieAlgebras._matrix(a),
Oscar.LieAlgebras._matrix(b);
side=:left,
)
a = V(rand(-10:10, dim(V)))
b = V(rand(-10:10, dim(V)))
end
Expand Down Expand Up @@ -394,7 +400,13 @@
elseif k == 2
a = V()
b = V()
while iszero(a) || iszero(b) || a == b
while iszero(a) ||
iszero(b) ||
can_solve(
Oscar.LieAlgebras._matrix(a),
Oscar.LieAlgebras._matrix(b);
side=:left,
)
a = V(rand(-10:10, dim(V)))
b = V(rand(-10:10, dim(V)))
end
Expand Down Expand Up @@ -443,10 +455,18 @@
elseif k == 2
a = V()
b = V()
while iszero(a) || iszero(b) || a == b
while iszero(a) ||
iszero(b) ||
can_solve(
Oscar.LieAlgebras._matrix(a),
Oscar.LieAlgebras._matrix(b);
side=:left,
)
a = V(rand(-10:10, dim(V)))
b = V(rand(-10:10, dim(V)))
end
println(a)
println(b)
@test !iszero(T(a, b))
@test !iszero(T(a, b) + T(b, a))
@test !iszero(T(a, b) - T(b, a))
Expand Down

0 comments on commit d02b98f

Please sign in to comment.