Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stdlib] UTests for SIMD's operators required by Comparable #3221

Closed
wants to merge 2 commits into from

Conversation

vguerra
Copy link

@vguerra vguerra commented Jul 11, 2024

Testing the following dunder methods in SIMD: __lt__, __le__, __eq__, __ne__, __gt__ and __ge__. Note that we test directly dunder methods to avoid any unintended implicit conversions possibly introduced trough operator syntax sugar.

Partially resolves #3145

Testing the following dunder methods in `SIMD`: `__lt__`, `__le__`, `__eq__`,
`__ne__`, `__gt__` and `__ge__`. Note that we test directly dunder methods to avoid
any unintended implicit conversions possibly introduced trough operator syntax sugar.

Partially resolves modularml#3145

Signed-off-by: Victor Guerra <vguerra@gmail.com>
@vguerra vguerra requested a review from a team as a code owner July 11, 2024 20:45
@JoeLoser JoeLoser self-assigned this Jul 12, 2024
As well, expanding asserts to avoid implict conversions and
making sure `__ne__` dunder method is as well tested.

Signed-off-by: Victor Guerra <vguerra@gmail.com>
Copy link
Contributor

@laszlokindrat laszlokindrat left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@laszlokindrat
Copy link
Contributor

!sync

@modularbot modularbot added the imported-internally Signals that a given pull request has been imported internally. label Jul 22, 2024
@modularbot
Copy link
Collaborator

✅🟣 This contribution has been merged 🟣✅

Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours.

We use Copybara to merge external contributions, click here to learn more.

@modularbot modularbot added the merged-internally Indicates that this pull request has been merged internally label Jul 22, 2024
modularbot pushed a commit that referenced this pull request Jul 23, 2024
…able` (#43826)

[External] [stdlib] UTests for `SIMD`'s operators required by
`Comparable`

Testing the following dunder methods in `SIMD`: `__lt__`, `__le__`,
`__eq__`, `__ne__`, `__gt__` and `__ge__`. Note that we test directly
dunder methods to avoid any unintended implicit conversions possibly
introduced trough operator syntax sugar.

Partially resolves #3145

Co-authored-by: Victor Guerra <vguerra@gmail.com>
Closes #3221
MODULAR_ORIG_COMMIT_REV_ID: 55ece3450c8b074ae3279f79cec8aa642382b036
@modularbot modularbot added the merged-externally Merged externally in public mojo repo label Jul 23, 2024
@modularbot
Copy link
Collaborator

Landed in 9a395fd! Thank you for your contribution 🎉

@modularbot modularbot closed this Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported-internally Signals that a given pull request has been imported internally. merged-externally Merged externally in public mojo repo merged-internally Indicates that this pull request has been merged internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants