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] Add test for InlineArray (sizeof[T] by capacity). #4125

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rd4com
Copy link
Contributor

@rd4com rd4com commented Mar 8, 2025

Hello,
this PR adds a small test for InlineArray:

(sizeof[ElementType]() * capacity) == sizeof[self._array]()

Hello,
this PR adds a small test for `InlineArray`:

```mojo
(sizeof[ElementType]() * capacity) == sizeof[self._array]()
```

Signed-off-by: rd4com <[email protected]>
@rd4com rd4com force-pushed the add_tests_inlinelist branch from dba1f4c to 64783be Compare March 8, 2025 21:16
Signed-off-by: rd4com <[email protected]>
@soraros
Copy link
Contributor

soraros commented Mar 9, 2025

Which one do we prefer for tests these days? fn raises or def?

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.

3 participants