Skip to content

Commit

Permalink
Make RootConversion tests faster
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 19, 2023
1 parent 70452cb commit 5184ac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 247 deletions.
239 changes: 0 additions & 239 deletions experimental/BasisLieHighestWeight/test/RootConversion-test-data.jl

This file was deleted.

13 changes: 5 additions & 8 deletions experimental/BasisLieHighestWeight/test/RootConversion-test.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include("RootConversion-test-data.jl")

function test_inverse_alpha_w(dynkin, n, weight)
lie_type = string(dynkin)
@test isequal(w_to_alpha(lie_type, n, alpha_to_w(lie_type, n, weight)), weight) # alpha -> w -> alpha
Expand Down Expand Up @@ -47,12 +45,11 @@ end
!(dynkin == 'F' && n != 4) &&
!(dynkin == 'G' && (n != 2))
)
for weight in test_sample_weights[n]
print(".")
test_inverse_alpha_w(dynkin, n, weight)
test_inverse_eps_w(dynkin, n, weight)
test_inverse_eps_alpha(dynkin, n, weight)
end
weight = [rand(QQ, -10:10) for _ in 1:n]
print(".")
test_inverse_alpha_w(dynkin, n, weight)
test_inverse_eps_w(dynkin, n, weight)
test_inverse_eps_alpha(dynkin, n, weight)
end
end
end
Expand Down

0 comments on commit 5184ac9

Please sign in to comment.