Skip to content

Commit

Permalink
Nested tuple test case (#433)
Browse files Browse the repository at this point in the history
* Nested tuple test case

* Bump patch

* Formatting
  • Loading branch information
willtebbutt authored Jan 2, 2025
1 parent 658d566 commit 5eab9a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Mooncake"
uuid = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
authors = ["Will Tebbutt, Hong Ge, and contributors"]
version = "0.4.69"
version = "0.4.70"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
3 changes: 3 additions & 0 deletions src/test_resources.jl
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,8 @@ function inplace_invoke!(x::Vector{Float64})
return nothing
end

highly_nested_tuple(x) = ((((x,),), x), x)

function generate_test_functions()
return Any[
(false, :allocs, nothing, const_tester),
Expand Down Expand Up @@ -827,6 +829,7 @@ function generate_test_functions()
(false, :none, nothing, partial_typevar_tester),
(false, :none, nothing, typevar_tester),
(false, :allocs, nothing, inplace_invoke!, randn(1_024)),
(false, :allocs, nothing, highly_nested_tuple, 5.0),
]
end

Expand Down

2 comments on commit 5eab9a6

@willtebbutt
Copy link
Member Author

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

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 v0.4.70 -m "<description of version>" 5eab9a6450534dcd62d9a5473e4fb3c1c3ef3303
git push origin v0.4.70

Please sign in to comment.