-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #236 from dgleich/subtypes_for_deprecated
Add custom subtypes function to avoid deprecation warnings
- Loading branch information
Showing
3 changed files
with
53 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using InteractiveUtils: subtypes | ||
@testset "Utilities" begin | ||
@testset "subtypes" begin | ||
println() | ||
println("---------------------------------------------------------------------------") | ||
println(" This next test may cause deprecation warnings.") | ||
println(" Remove this note if it stops doing that and remove the function.") | ||
println(" _subtypes_and_avoid_deprecation ") | ||
println(" function from libmagickwand.jl.") | ||
println("---------------------------------------------------------------------------") | ||
println() | ||
@test subtypes(Integer) == ImageMagick._subtypes_and_avoid_deprecation(Integer) | ||
@test subtypes(ImageMagick.ColorAlpha) == ImageMagick._subtypes_and_avoid_deprecation(ImageMagick.ColorAlpha) | ||
@test subtypes(ImageMagick.AlphaColor) == ImageMagick._subtypes_and_avoid_deprecation(ImageMagick.AlphaColor) | ||
end | ||
end |