Skip to content

Commit

Permalink
Add test for lplot! fallback method
Browse files Browse the repository at this point in the history
  • Loading branch information
fhagemann committed Feb 20, 2025
1 parent fb82cb5 commit adb6f97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
LegendSpecFits = "18221496-77af-46cf-bab8-820da09f7f97"
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
RadiationDetectorSignals = "bf2c0563-65cf-5db2-a620-ceb7de82658c"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

Expand Down
3 changes: 2 additions & 1 deletion test/test_lplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ using Makie

import LegendSpecFits
import Distributions
import StatsBase
import Unitful: @u_str

using Test
Expand All @@ -16,7 +17,7 @@ using Test

# test default watermark
ax = Axis(fig[1,1])
hist!(ax, randn(10000))
@test_nowarn lplot!(StatsBase.fit(StatsBase.Histogram, randn(10000)))
@test_nowarn LegendMakie.add_watermarks!()

# test alternative watermark
Expand Down

0 comments on commit adb6f97

Please sign in to comment.