Test Vectors

Reference fixtures used by our own Playwright round-trip suite. Each row is an input the generator accepts → an expected substring(s) the decoded output must contain. Use these to write your own validators or reproduce parity tests.

Source: tests/fixtures.json in our repo. Fetched live from this site so it's always in sync.

TypeInput fieldsExpected substring(s)Format
Loading…

How to use these

Generate any row's payload using the generator — fill the named fields with the input values, click Generate, scan the result with any reader. The decoded text must contain every "Expected substring." If it doesn't, file an issue.

Round-trip vs unit-test parity

These fixtures are the ground truth for our tests/roundtrip.mjs harness, which generates each code in headless Chromium, decodes it back via BarcodeDetector, and asserts the substring match. The harness also runs a mutation pass (empty / huge / control / unicode inputs) per fixture to catch encoder crashes.

Standards references

Last verified: 2026-04-13. Privacy manifesto · Compatibility matrix