Skip to content

Commit

Permalink
Fix compat finally
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jun 6, 2024
1 parent 23d5b97 commit 89c6127
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ end
ft = StructUtils.fieldtags(NoArg2)
@test ft.with_tag == (xml=(key="with-tag",),) && ft.with_tag_type == (xml=(key="with-tag-type",),) && ft.with_tag_default == (xml=(key="with-tag-default",),) && ft.with_tag_type_default == (xml=(key="with-tag-default",),) && ft.with_tag_atomic == (xml=(key="with-tag-atomic",),) && ft.with_tag_type_atomic == (xml=(key="with-tag-type-atomic",),) && ft.with_tag_default_atomic == (xml=(key="with-tag-default-atomic",),) && ft.with_tag_type_default_atomic == (xml=(key="with-tag-default-atomic",),)

@test string(@doc(NoArg4)) == "Documentation for NoArg4\n"
@static if VERSION >= v"1.11-DEV"
@test @doc(NoArg4).text[1] == "Documentation for NoArg4\n"
else
@test string(@doc(NoArg4)) == "Documentation for NoArg4\n"
end

@test_throws ArgumentError @macroexpand StructUtils.@noarg struct NonMutableNoArg
with_type::Int = 1
Expand Down

2 comments on commit 89c6127

@quinnj
Copy link
Owner Author

@quinnj quinnj commented on 89c6127 Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

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/108407

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.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

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:

git tag -a v1.1.0 -m "<description of version>" 89c61270d7de4895e1650e0c0af217d71ac61370
git push origin v1.1.0

Please sign in to comment.