-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests to verify that the new metadata file is loaded
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
[deps] | ||
PropDicts = "4dc08600-4268-439e-8673-d706fafbb426" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[compat] | ||
PropDicts = "0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
# This file is a part of LegendTestData.jl, licensed under the MIT License (MIT). | ||
|
||
using LegendTestData | ||
using PropDicts | ||
using Test | ||
|
||
@testset "Package LegendTestData" begin | ||
|
||
@info legend_test_data_path() | ||
@test isdir(joinpath(legend_test_data_path(), "data")) | ||
@info legend_test_data_path() | ||
@test isdir(joinpath(legend_test_data_path(), "data")) | ||
|
||
@testset "Inverted coax metadata" begin | ||
invcoax_metadata = joinpath(legend_test_data_path(), "data", "ldsim", "invcoax-metadata.json") | ||
@test isfile(invcoax_metadata) | ||
invcoax = readprops(invcoax_metadata) | ||
@test haskey(invcoax.geometry.borehole, :depth_in_mm) | ||
@test invcoax.geometry.borehole.depth_in_mm == 55 | ||
@test !haskey(invcoax.geometry.borehole, :gap_in_mm) | ||
end | ||
|
||
end # testset |