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

Implement no_std tests #159

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Implement no_std tests #159

merged 1 commit into from
Nov 7, 2023

Conversation

jmintb
Copy link
Contributor

@jmintb jmintb commented Oct 7, 2023

Hi, this is a draft PR for #68 to see if I am going in the right direction.

I have taken a test for the Join implementation on array and copied it into a no_std environment. I believe this should validate that Join works in a no_std environment.

Am I correct in assuming that a single test for Join is sufficient? as we are validating that traits work in no_std not specific implementations.

Let me know if this is the sort of thing you had in mind :)

@yoshuawuyts
Copy link
Owner

This seems great; yes please keep going in this direction!

@jmintb
Copy link
Contributor Author

jmintb commented Oct 14, 2023

Alright, there is now one test for each trait. I again just reused existing tests so I could easily have missed something. let me know what you think :)

This commit implements a test for each trait in a no std environment,
ensuring compatibility with such an environment.

This addresses issue yoshuawuyts#68.
@jmintb jmintb marked this pull request as ready for review October 14, 2023 11:01
Copy link
Owner

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

Oh sweet, thank you! - I was thinking we should add these to CI somehow, but they already do. This looks great; thank you!

@yoshuawuyts yoshuawuyts merged commit 04e3292 into yoshuawuyts:main Nov 7, 2023
@alexmoon alexmoon mentioned this pull request Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants