CultLib/tests/vectors/slot-nil
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens c85edf90bb cultcache-ts slots: a default fills only a missing slot, a nil is null in a reference slot and refused in a value slot, bytes reads a str
Held to tests/vectors/slot-nil/reads.msgpack, written by the C# reference (SlotNilVectorTests): every accepted row
rewrites to the reference's bytes, nil in an int slot is refused. 94a26431c000c0 round-trips byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-11 21:05:09 +02:00
..
README.md slot-nil vectors: the C# writer for what the reference reads and rewrites for a nil or short record in each slot kind 2026-10-11 21:01:33 +02:00
reads.msgpack cultcache-ts slots: a default fills only a missing slot, a nil is null in a reference slot and refused in a value slot, bytes reads a str 2026-10-11 21:05:09 +02:00

slot-nil vectors

Written only by the C# reference, tests/GameCult.Caching.Tests/SlotNilVectorTests.cs, with CULTCACHE_WRITE_VECTORS=1. Every other run reads this file and compares it byte for byte; a changed vector is a reviewed commit. Other runtimes decode it and are held to the same answers.

A record of five slots: S string, I int, B byte[], R a record of one string, L List of string.

  • reads.msgpack: an array of [name, payload, accepted, rewritten]. payload (bin) is the record fed to the reference; accepted is whether it read; rewritten (bin) is what the reference writes after reading it, and empty when refused. It covers a nil in each kind of slot, a MessagePack str in the byte[] slot, and records short of their last slots.