aboutsummaryrefslogtreecommitdiff
path: root/crates/rsli/src/tests.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat: обновить методы обработки данных и ↵Valentin Popov22 hours1-0/+174
| | | | улучшить обработку ошибок в библиотеке
* feat: добавить тесты для проверки ↵Valentin Popov22 hours1-0/+175
| | | | структурных инвариантов и корректности сортировки в RsLi
* fix: обработка выхода за пределы индекса ↵Valentin Popov2 days1-0/+38
| | | | сортировки в архиве и улучшение декодирования LZSS с поддержкой XOR
* Implement LZSS decompression with optional XOR decryptionValentin Popov2 days1-0/+2
| | | | | | | | | - Added `lzss_decompress_simple` function for LZSS decompression in `lzss.rs`. - Introduced `XorState` struct and `xor_stream` function for XOR decryption in `xor.rs`. - Updated `mod.rs` to include new LZSS and XOR modules. - Refactored `parse_library` function in `parse.rs` to utilize the new XOR decryption functionality. - Cleaned up and organized code in `lib.rs` by removing redundant functions and structures. - Added tests for new functionality in `tests.rs`.
* fix: добавить проверку на наличие архивов в ↵Valentin Popov3 days1-1/+6
| | | | тестах для nres и rsli
* Refactor tests and move them to a dedicated moduleValentin Popov3 days1-0/+847
- Moved the test suite from `lib.rs` to a new `tests.rs` file for better organization. - Added a `SyntheticRsliEntry` struct to facilitate synthetic test cases. - Introduced `RsliBuildOptions` struct to manage options for building RsLi byte arrays. - Implemented various utility functions for file handling, data compression, and bit manipulation. - Enhanced the `rsli_read_unpack_and_repack_all_files` test to validate all RsLi archives. - Added new tests for synthetic entries covering all packing methods, overlay handling, and validation error cases.