Skip to content

Commit

Permalink
[ADD] testing utils
Browse files Browse the repository at this point in the history
  • Loading branch information
meudnaes committed Jun 13, 2024
1 parent a6e6c47 commit f6189ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/utils.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@testset "utility functions" begin

@test size(BifrostTools.squeeze(ones(1,1,10,1,1,10,1))) == (10,10)

basename,snapname = BifrostTools.get_basename(expname,xp.snaps[1],expdir)

@test splitpath(snapname)[end] == "en48_001"
@test splitpath(basename)[end] == "en48"
end

0 comments on commit f6189ce

Please sign in to comment.