Skip to content

Commit

Permalink
fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos authored Nov 27, 2023
1 parent 289ef51 commit f5f52ef
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/caching.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Tests for caching of Clebsch-Gordan coefficients
import SUNRepresentations: cache_info, precompute_disk_cache, cache_path, offsets_path, clear_disk_cache!

for N in 3:5
SUNRepresentations.cache_info()
SUNRepresentations.precompute_disk_cache(N, 1)
@test isfile(SUNRepresentations.cache_path(N))
@test isfile(SUNRepresentations.offsets_path(N))
SUNRepresentations.clear_disk_cache!(N)
@test !isfile(SUNRepresentations.cache_path(N))
@test !isfile(SUNRepresentations.offsets_path(N))
cache_info()
precompute_disk_cache(N, 1)
@test isfile(cache_path(N))
@test isfile(offsets_path(N))
clear_disk_cache!(N)
@test !isfile(cache_path(N))
@test !isfile(offsets_path(N))
end

for N in 3:5
SUNRepresentations.precompute_disk_cache(N, 2)
precompute_disk_cache(N, 2)
end
SUNRepresentations.cache_info()
cache_info()

0 comments on commit f5f52ef

Please sign in to comment.