-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* unknown unionall type param * version & changelog
- Loading branch information
1 parent
6760bd4
commit b757dd5
Showing
5 changed files
with
59 additions
and
13 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
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,7 +1,7 @@ | ||
[testfiles] | ||
git-tree-sha1 = "8d34be7b8603854dca03eb0330f214a9194de75a" | ||
git-tree-sha1 = "ab278bd01e5e230fd6403df8a9f0ecfead8f673f" | ||
lazy = true | ||
|
||
[[testfiles.download]] | ||
sha256 = "f91805f612a00178ca68d5ecc895af09c231d1ca949c7ef0157cb9730b3a84aa" | ||
url = "https://github.com/JonasIsensee/JLD2TestFiles/archive/refs/tags/v0.1.1.tar.gz" | ||
sha256 = "4db286cb7a53d22368ac9f0305064f1b70e01936d3ec05961d00df3ab660769a" | ||
url = "https://github.com/JonasIsensee/JLD2TestFiles/archive/refs/tags/v0.1.3.tar.gz" |
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,8 +1,30 @@ | ||
using Test, JLD2 | ||
using LazyArtifacts | ||
# When adding test files to the JLD2Testfiles repo tag a new | ||
# release and adapt Artifacts.toml and the line below accordingly. | ||
testfiles = artifact"testfiles/JLD2TestFiles-0.1.1/artifacts" | ||
#= | ||
When adding test files to the JLD2Testfiles repo tag a new | ||
release and adapt Artifacts.toml and the line below accordingly. | ||
git clone [email protected]:JonasIsensee/JLD2TestFiles.git | ||
add file & commit | ||
git tag v0.1.X | ||
git push | ||
git push --tags | ||
go to github and create a new release with name "v0.1.x" | ||
update Artifacts.toml: | ||
1) navigate to testdir | ||
2) launch repl and run | ||
using Pkg | ||
Pkg.activate(; temp=true) | ||
Pkg.add("ArtifactUtils") | ||
using ArtifactUtils | ||
add_artifact!( | ||
"Artifacts.toml", | ||
"testfiles", | ||
"https://github.com/JonasIsensee/JLD2TestFiles/archive/refs/tags/v0.1.x.tar.gz", # replace version here | ||
force=true, | ||
lazy=true) | ||
update artifact string below to reflect new version number | ||
=# | ||
testfiles = artifact"testfiles/JLD2TestFiles-0.1.3/artifacts" | ||
|
||
@testset "HDF5 compat test files" begin | ||
# These are test files copied from the HDF5.jl test suite | ||
|
@@ -143,4 +165,11 @@ end | |
@test data["ds"] isa JLD2.SerializedDict | ||
@test JLD2.isreconstructed(data["ds"].kvvec[1].second) | ||
@test JLD2.isreconstructed(data["tms"][2]) | ||
end | ||
|
||
@testset "Issue #538 Reconstruction of UnionAll type parameter" begin | ||
fn = joinpath(testfiles, "unionall_typeparam.jld2") | ||
data = load(fn, "test") | ||
@test propertynames(data) == (:val,) | ||
@test data.val == 4 | ||
end |
b757dd5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
b757dd5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/99158
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: