Skip to content

Add edge case tests for CommandApdu#31

Merged
tomkp merged 1 commit intomasterfrom
test/command-apdu-edge-cases
Dec 28, 2025
Merged

Add edge case tests for CommandApdu#31
tomkp merged 1 commit intomasterfrom
test/command-apdu-edge-cases

Conversation

@tomkp
Copy link
Copy Markdown
Owner

@tomkp tomkp commented Dec 28, 2025

Summary

Add comprehensive edge case tests for CommandApdu class.

Changes

  • Add test for bytes getter immutability
  • Add test for APDU with Le only (Case 2)
  • Add test for APDU with data and Le (Case 4)
  • Add test for larger data arrays (100 bytes)
  • Add test for complete hex output verification

Test plan

  • All 35 tests pass
  • ESLint passes
  • Prettier formatting applied

Fixes #30

- Add test for bytes getter immutability
- Add test for APDU with Le only (Case 2)
- Add test for APDU with data and Le (Case 4)
- Add test for larger data arrays
- Add test for complete hex output verification

Fixes #30
@tomkp tomkp merged commit c97d626 into master Dec 28, 2025
3 checks passed
@tomkp tomkp deleted the test/command-apdu-edge-cases branch December 28, 2025 14:53
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.

Add edge case tests for CommandApdu

1 participant