From 51631f07d5aabd18cdd13b1401db0b84b9a1ccaa Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 00:19:25 +0200 Subject: [PATCH] Caching tests: regenerate leaves-reads.msgpack from the C# reference (11 leaves x 23 tokens, 253 rows) and the README rows leaf-record.msgpack is unchanged. The any leaf now has a ext refusal (d40100) and the record leaves read a complete second slot. Co-Authored-By: Claude Sonnet 5.5 --- tests/vectors/numeric-leaves/README.md | 9 ++++++--- .../numeric-leaves/leaves-reads.msgpack | Bin 3855 -> 5279 bytes 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/vectors/numeric-leaves/README.md b/tests/vectors/numeric-leaves/README.md index dfb55c3b..c2caca11 100644 --- a/tests/vectors/numeric-leaves/README.md +++ b/tests/vectors/numeric-leaves/README.md @@ -6,8 +6,9 @@ reviewed commit. Other runtimes decode them and are held to the same answers. These vectors hold every leaf kind, not only numbers. A document with one slot, `[value]`, whose slot is a C# `int`, `long`, `float` or `double` (leaf `int32`, `int64`, `float32`, `float64`), or a `string`, `bool`, `byte[]`, `object`, -`List`, `string[]`, `int?`, `List`, a two-slot record class or a `[Union]` interface (leaf `string`, -`boolean`, `bytes`, `any`, `list-string`, `array-string`, `nullable-int32`, `list-int32`, `record`, `union`). +`List`, `string[]`, `int?`, `List`, a two-slot record class, a `List` of it or a `[Union]` interface (leaf +`string`, `boolean`, `bytes`, `any`, `list-string`, `array-string`, `nullable-int32`, `list-int32`, `record`, `list-record`, +`union`). - `reads.msgpack`: an array of `[leaf, payload, accepted, bits]`. `payload` (bin) is the one-slot record fed to the reference; `accepted` is whether it read; `bits` (bin, 8 bytes, big-endian) is the int64 it read, or the IEEE bits of @@ -18,7 +19,9 @@ These vectors hold every leaf kind, not only numbers. A document with one slot, or a NaN; `bytes` (bin) is what the reference writes after reading it. It keeps every bit, a signalling NaN's included. - `leaves-reads.msgpack`: an array of `[leaf, payload, accepted, rewrite]` for the wider leaves. `payload` (bin) is the one-slot record `[token]` fed to the reference; `accepted` is whether it read; `rewrite` (bin) is what the reference - writes after reading it, and empty when refused. Every token is fed to every leaf. + writes after reading it, and empty when refused. Every token is fed to every leaf: 11 leaves x 23 tokens, 253 rows. + The tokens include an application ext (`d40100`, which the `any` leaf refuses) and complete, int-in-float-slot and + str-in-float-slot two-slot records. - `leaf-record.msgpack`: `[members, payload]` for one `cultcache.leaf-record` document holding every leaf. `members` are the catalog rows the single-file store writes, each `[slot, memberName, typeName, isReference, isMany, targetSchemaName, isName, indexAlias]`; `payload` (bin) is the record's bytes in that store. diff --git a/tests/vectors/numeric-leaves/leaves-reads.msgpack b/tests/vectors/numeric-leaves/leaves-reads.msgpack index a8c08a959fdd2aceeda6e304b9dfc2977b447308..aa1b48f1177ab958b4deb6caa61f9717af8e6a7b 100644 GIT binary patch literal 5279 zcmZvgO>P@U5QRxv5@O%Qo8$n_RmfNf1P~NJ$qVh28>k5#z(QaLNP?U}(ag%xB8zMS zi24>g`oPXr}^`}>LK;d;=lXPSJ(TC-S^|FoIZ^UDqpyKQ~r4O@4|i< zpOr7~9v2HntMWKZn?2G_Pud^2d{rLS!&raE1t;b2<(!Sn^e}h2O<8h%Ql=dltjaBy zXXS^7^}~kI>vC93FXvWY&YNy7M<2h<;^~;M4!z``K!I)pEj45 z+w=9#1yOB=qE3o}lcQjhpZYwheyY-*m<*K+om5A1k$Fl4mS|(s6!ojpJOv0*L0~Fs zQWZ>H1x~Vvi>=_$74@_&`3l^H1tMd?LfNOy&Gq?}3yaEhp-QqqNmX2hX^Ps0DJq*K zRBe<_%D7zL17VaBn>TS{GV|5r6m=P=gIIL8vf2R?!(}H6L&Q zqy!t>)$zM)4^^k88Y|Ds25f4KOy?#pxUCo5whB_}Gq!WC(JrRG$ip*^yVfK@*7Z}* zyCJG}qi9_SvnSGLXc+t7ZC$fgpVc&Ht^(#jA2w}i*!yLBadrJxZ&HcbU}Fi3pO*r~zH~5}!e~H+_cYAjBFe&%UdW&I zkc0d%G``a6Lo9d}2zkB}3@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