Skip to content

Commit

Permalink
Merge pull request #45 from kalmarek/mk/v0_4_1
Browse files Browse the repository at this point in the history
v0.4.1
  • Loading branch information
Marek Kaluba committed Dec 5, 2023
2 parents f90a9fe + c3810c6 commit 471fc6f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GroupsCore"
uuid = "d5909c97-4eac-4ecc-a3dc-fdd0858a4120"
authors = ["Marek Kaluba <kalmar@amu.edu.pl> and contributors"]
version = "0.4.0"
authors = ["Marek Kaluba <kalmar@mailbox.org> and contributors"]
version = "0.4.1"

[deps]
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
Expand Down
2 changes: 2 additions & 0 deletions src/group_elements.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Base.deepcopy_internal(g::GroupElement, stackdict::IdDict) = throw(
# or a singleton). However by defining this fallback we force everybody to
# implement it, except isbits group elements.

Base.copy(g::GroupElement) = deepcopy(g)

@doc Markdown.doc"""
inv(g::GroupElement)
Expand Down
6 changes: 6 additions & 0 deletions test/conformance_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ function test_GroupElement_interface(g::GEl, h::GEl) where {GEl<:GroupElement}
@test g^-3 == inv(g) * inv(g) * inv(g)
@test (g, h) == (old_g, old_h)

pow(g,n) = g^n

@test pow(g, 6) isa GroupElement
@test pow(g, 1) isa GroupElement
@test (g, h) == (old_g, old_h)

@test (g * h)^-1 == inv(h) * inv(g)
@test (g, h) == (old_g, old_h)

Expand Down

2 comments on commit 471fc6f

@kalmarek
Copy link
Owner

Choose a reason for hiding this comment

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

@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/96542

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.1 -m "<description of version>" 471fc6f0a60eaeb75dc644c39b048f8cb10642e7
git push origin v0.4.1

Please sign in to comment.