Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjaffray committed Jan 30, 2024
1 parent 549d860 commit a6b15cb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MRIGradients.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export apply_girf,
buildGIRF_PN,
time2freq,
nodes_to_gradients,
gradients_to_nodes
gradients_to_nodes,
displayGirf


include("Util.jl")
Expand Down
21 changes: 21 additions & 0 deletions test/testMRIGradients.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,32 @@ function test_grads()

end

function test_display_girf()

girf_applier_k1 = load_object("data/girf_app_k1.jld2")
displayGirf(girf_applier_k1.essential)
@test true

end

function test_girf_applier()

girf_applier_k1 = load_object("data/girf_app_k1.jld2")

girf_applier_2 = GirfApplier(deepcopy(girf_applier_k1.essential),deepcopy(girf_applier_k1.gamma))

@test girf_applier_2.gamma == girf_applier_k1.gamma
@test girf_applier_2.essential.df == girf_applier_k1.essential.df

end

function test_package()

@testset "Package" begin

test_grads()
test_girf_applier()
test_display_girf()

end

Expand Down

0 comments on commit a6b15cb

Please sign in to comment.