Skip to content

Commit

Permalink
[LabelledNumbers] Fix div (#1494)
Browse files Browse the repository at this point in the history
* [LabelledNumbers] Fix div

* [NDTensors] Bump to v0.3.26
  • Loading branch information
mtfishman authored Jun 11, 2024
1 parent de78e9f commit 6121357
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NDTensors/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "NDTensors"
uuid = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf"
authors = ["Matthew Fishman <[email protected]>"]
version = "0.3.25"
version = "0.3.26"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Expand Down
4 changes: 2 additions & 2 deletions NDTensors/src/lib/LabelledNumbers/src/labelled_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ for (fname, f) in [
(:mul, :*),
(:add, :+),
(:minus, :-),
(:div, :/),
(:division, :÷),
(:division, :/),
(:div, :÷),
(:isequal, :isequal),
(:isless, :isless),
]
Expand Down
4 changes: 4 additions & 0 deletions NDTensors/src/lib/LabelledNumbers/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ using Test: @test, @testset
@test !islabelled(x - x)

@test x / 2 == 1
@test x / 2 isa AbstractFloat
@test x / 2 isa Float64
@test !islabelled(x / 2)
@test x ÷ 2 == 1
@test x ÷ 2 isa Integer
@test x ÷ 2 isa Int
@test !islabelled(x ÷ 2)
@test -x == -2
@test hash(x) == hash(2)
Expand Down

2 comments on commit 6121357

@mtfishman
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 subdir=NDTensors

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

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 NDTensors-v0.3.26 -m "<description of version>" 6121357764f100a9124fd34e275283adce8f2c60
git push origin NDTensors-v0.3.26

Please sign in to comment.