aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/base32/base32_test.odin
Commit message (Collapse)AuthorAgeFilesLines
* Package lines for base32, move its tests to tests"Jeroen van Rijn2025-10-091-228/+0
|
* Add `#+test` to base32_test.odingingerBill2025-09-281-0/+1
|
* encoding/base32: Fix RFC 4648 references and add RFC reference URLZoltán Kéri2024-12-311-3/+3
| | | | | | | | | | | | | Fix incorrect RFC 4648 section references: - Add RFC URL reference at package level - Update Error enum documentation to reference correct sections: - Invalid_Character: Section 3.3 (non-alphabet characters) - Invalid_Length: Section 6 (base32 block size requirements) - Malformed_Input: Section 3.2 (padding) - Fix test file section references to match correct sections This ensures all RFC references are accurate and adds a link to the source RFC for reference.
* encoding/base32: Add proper cleanup for encoded strings in testsZoltán Kéri2024-12-301-1/+3
| | | | | | Add defer delete for encoded strings across all test procedures to ensure proper cleanup and prevent memory leaks. This completes the memory management improvements started in 591dd876.
* encoding/base32: Add custom alphabet test caseZoltán Kéri2024-12-301-0/+75
| | | | | | | | Add test case to verify custom alphabet support. The test uses a decimal-uppercase alphabet (0-9, A-V) to test both encoding and decoding with custom tables, including validation. This ensures the encode and decode functions work correctly with custom encoding tables and validation functions as documented.
* encoding/base32: Add encode->decode roundtrip testZoltán Kéri2024-12-301-0/+23
| | | | | | | Add test_base32_roundtrip() to verify the encode->decode roundtrip preserves data integrity. This test helps ensure our base32 implementation correctly handles the full encode->decode cycle without data loss or corruption.
* encoding/base32: Move tests to base32_test.odinZoltán Kéri2024-12-291-0/+127
Move existing test procedures to a dedicated test file for better code organization and maintainability.