# step: WFT1 tensor frames · wai-rs and weft_verify.py # order: 335 # features: weft # independent: weft media python3 -I tensor-conformance/weft_verify.py tensor-conformance # # wai.tensor.weft (SPEC §5, WFT1 tensor frames): the module's unit tests (CRC-32C and the # format's hash, each admitted mode round-tripping through its writer, every other mode # refused as UnsupportedMode, the frame's checks with their classes, descriptors held to # their schema and their canonical bytes, the float planes and the Huffman stream checked in # their order) and tests/weft.rs (the corpus regenerates byte for byte and every vector gets # its outcome, every class and every admitted mode reached; the writers give the format's own # frames byte for byte; SPEC states the classes and modes; a frame in a WAI1 envelope is # dispatched under its capability and decodes); and, in the step of every independent # verifier above, the corpus's second implementation, weft_verify.py, written from the # format's text and SPEC §5 and sharing no code with wai-rs, which also requires changed # frames to be refused and each of its own checks to be needed; standard library only, run # isolated (-I). The corpus is under wai/*-conformance/**, which the workflow's trigger names. set -euo pipefail (cd wai-rs && cargo test --no-default-features --features "$WAI_FEATURES" --lib -- codecs::weft::) (cd wai-rs && cargo test --no-default-features --features "$WAI_FEATURES" --test weft)