# RAR5 multi-volume compressed test fixtures

Real RAR5 multi-volume archives with the standard RAR5 algorithm
(method 3, "normal") produced by WinRAR 7.22 for
`internal/PLAN_multivolume_archives.md` §2d (compressed-SPLIT support).

## Layout

- `multi.part1.rar` (8 192 B) — volume 1 of 4. Carries the main
  header and the leading slice of `comp_a.bin` (`FHD_SPLIT_AFTER`).
- `multi.part2.rar` (8 192 B) — volume 2. Mid-segment of
  `comp_a.bin` (`FHD_SPLIT_BEFORE` + `FHD_SPLIT_AFTER`).
- `multi.part3.rar` (8 192 B) — volume 3. Trailing slice of
  `comp_a.bin` (`FHD_SPLIT_BEFORE`) **and** the leading slice of
  `comp_b.bin` (`FHD_SPLIT_AFTER`) — exercises two consecutive
  SPLIT entries in the same volume.
- `multi.part4.rar` (2 485 B) — volume 4. Trailing slice of
  `comp_b.bin` (`FHD_SPLIT_BEFORE`) + `EndArchive` marker.

Both source files are RNG-generated bytestreams over a small alphabet
seeded for reproducibility; test code regenerates the expected
plaintext so the source payloads are not committed.

## Regenerate

```sh
cd /tmp && rm -rf rar5mvz && mkdir rar5mvz && cd rar5mvz
python3 -c "
import sys, random
random.seed(42)
data = bytearray()
for _ in range(30000):
    data.append(random.choice(b'ABCDEFGHabcdefgh '))
sys.stdout.buffer.write(bytes(data))" > comp_a.bin
python3 -c "
import sys, random
random.seed(2026)
data = bytearray()
for _ in range(20000):
    data.append(random.choice(b'XYZxyz '))
sys.stdout.buffer.write(bytes(data))" > comp_b.bin
rar a -ma5 -m3 -v8k -tsm- -tsa- -tsc- -ep multi.rar comp_a.bin comp_b.bin
```
