Home /Modules/comparison/ARRAY-STRING-BOUNDS-VECTORS.md

ARRAY-STRING-BOUNDS-VECTORS.md

comparison/ARRAY-STRING-BOUNDS-VECTORS.md · 35 line(s) · markdown

Array, Bounds, and String Vectors

Standard: SCS-TEST-003 | Edition 1.0 | Status: pending CI

Purpose

Portable observations for empty and populated arrays, checked index rejection, strict UTF-8 validation, byte-preserving round trips, and Unicode code-point counting. Target implementations: C11, C++17, and Java 21+.

Vector ledger

IDOperationExpected
ARRAY-EMPTYEmpty sequence length0
ARRAY-SINGLEOne-element sequence length1
ARRAY-FIRSTFirst element of [11,22,33]11
ARRAY-LASTLast element of [11,22,33]33
ARRAY-NEGATIVEChecked access at index -1Rejected
ARRAY-PAST-ENDChecked access at index equal to lengthRejected
UTF8-ROUNDTRIPDecode and re-encode valid fixture Aé😀PASS; identical bytes
UTF8-INVALIDStrictly validate overlong byte sequence C0 AFRejected
UTF8-BYTESUTF-8 byte length of Aé😀7
UNICODE-CODEPOINTSUnicode code-point count of Aé😀3

Contract

Run

python3 comparison/tests/run_array_string_vectors.py

The runner emits comparison-array-string-results.json with platform and per-implementation output. CI retains this result for each OS.

Qualification boundary

Passing qualifies only these safe access and UTF-8 observations. It does not qualify allocation failure, slicing, mutation aliasing, normalization, grapheme segmentation, locale collation, or SLeeLa VM array/string semantics.