Skip to content

Commit

Permalink
Add tests for new FCCD implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
fhagemann committed Dec 27, 2024
1 parent 6311f8b commit 18d1623
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[compat]
Documenter = "1"
LegendTestData = "0.2.9"
LegendTestData = "0.2.10"
3 changes: 3 additions & 0 deletions test/test_legend_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using LegendDataManagement
using Test

using StructArrays, PropertyFunctions, TypedTables
using Measurements: uncertainty

include("testing_utils.jl")

Expand Down Expand Up @@ -41,6 +42,8 @@ include("testing_utils.jl")
extended_keywords = (:cc4, :cc4ch, :daqcrate, :daqcard, :hvcard, :hvch, :enrichment, :mass, :total_volume, :active_volume)
@test !any(in(columnnames(chinfo)), extended_keywords)
@test all(in(columnnames(extended)), extended_keywords)
@test !any(iszero.(uncertainty.(extended.fccd)))
@test !any(iszero.(uncertainty.(extended.active_volume)))

# ToDo: Make type-stable:
# @test #=@inferred=#(channel_info(l200, filekey)) isa StructArray
Expand Down

0 comments on commit 18d1623

Please sign in to comment.