Skip to content

fix: add missing chunk_first and chunk_len params to test functions - #5

Merged
dr-orlovsky merged 1 commit into
UBIDECO:masterfrom
melvincarvalho:fix/missing-chunking-params
Dec 3, 2025
Merged

dr-orlovsky merged 1 commit into
UBIDECO:masterfrom
melvincarvalho:fix/missing-chunking-params

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Summary

  • Add missing chunk_first and chunk_len parameters to three test functions that call Baid64Display::with()
  • Values match the trait's default constants (CHUNK_FIRST = 8, CHUNK_LEN = 7)

Problem

The Baid64Display::with() function requires 8 arguments but three test functions were only providing 6:

  • test_baid64_display()
  • test_baid64_display_fmt()
  • test_baid64_display_chunking()

This caused compilation errors:

error[E0061]: this function takes 8 arguments but 6 arguments were supplied

Test plan

  • cargo test passes (all 6 tests)
  • Verified values match trait defaults and new() constructor

Fixes #3

The Baid64Display::with() function requires 8 arguments but three test
functions were only providing 6, missing the chunk_first and chunk_len
parameters.

Added the missing parameters with values 8 and 7 respectively, matching
the trait's default constants (CHUNK_FIRST = 8, CHUNK_LEN = 7).

Fixes UBIDECO#3

@dr-orlovsky dr-orlovsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK 3e1895e

@dr-orlovsky
dr-orlovsky merged commit 9cddea9 into UBIDECO:master Dec 3, 2025
12 of 17 checks passed
@dr-orlovsky

Copy link
Copy Markdown
Contributor

Thank you very much for the fix!

@melvincarvalho

Copy link
Copy Markdown
Contributor Author

You are welcome! I will fix the linting.

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.

Fix failing tests: missing chunk_first and chunk_len parameters in Baid64Display::with() calls

2 participants