Skip to content

Add test cases for additional array types#768

Open
20hyo wants to merge 1 commit into
rs:masterfrom
20hyo:add-array-test-cases
Open

Add test cases for additional array types#768
20hyo wants to merge 1 commit into
rs:masterfrom
20hyo:add-array-test-cases

Conversation

@20hyo

@20hyo 20hyo commented May 7, 2026

Copy link
Copy Markdown

Adds test coverage for additional CBOR array element types beyond integers and booleans.

Copilot AI review requested due to automatic review settings May 7, 2026 06:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Expands CBOR decoder test coverage to ensure array2Json correctly renders arrays containing element types beyond integers and booleans, improving confidence in mixed and nested array decoding behavior.

Changes:

  • Added test coverage for definite-length empty arrays.
  • Added table-driven tests for arrays of strings, nested arrays, floats, and mixed element types (including null).
  • Added a test for arrays containing map elements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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