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

tests: Add cases to the scn_u32_hex unittest #20463

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

Teufelchen1
Copy link
Contributor

Contribution description

Follow-up to #20458
@kfessel discovered that the tests were still insufficient. This adds the missing cases.
Technically, all ascii characters could be tested separately...

Testing procedure

make -C tests/unittests/ tests-fmt term

Issues/PRs references

#19894

@Teufelchen1 Teufelchen1 requested a review from miri64 as a code owner March 12, 2024 16:52
@github-actions github-actions bot added the Area: tests Area: tests and testing framework label Mar 12, 2024
@Teufelchen1 Teufelchen1 requested a review from kfessel March 12, 2024 16:57
Copy link
Contributor

@kfessel kfessel left a comment

Choose a reason for hiding this comment

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

please also remove the empty line 257

@Teufelchen1 Teufelchen1 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 12, 2024
@kfessel
Copy link
Contributor

kfessel commented Mar 12, 2024

you might want to add a test that test if the \0 is respected scn_u32_hex("9:3k",5) or scn_u32_hex("9:3k",200)

@Teufelchen1
Copy link
Contributor Author

I assumed Line 868 would cover that? I added a more explicit test tho.

Copy link
Contributor

@kfessel kfessel left a comment

Choose a reason for hiding this comment

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

doppelt approved hält besser

@Teufelchen1 Teufelchen1 enabled auto-merge March 12, 2024 17:37
@Teufelchen1
Copy link
Contributor Author

Thanks for dealing with this quickly!

@riot-ci
Copy link

riot-ci commented Mar 12, 2024

Murdock results

✔️ PASSED

79a77db tests: Add cases to the scn_u32_hex unittest

Success Failures Total Runtime
17 0 17 30s

Artifacts

@Teufelchen1 Teufelchen1 added this pull request to the merge queue Mar 12, 2024
Merged via the queue into RIOT-OS:master with commit 86ffeeb Mar 12, 2024
26 checks passed
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.04 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants