ZON test suite and formal specification

I have implemented a ZON library in TypeScript (published on JSR) and would like to verify its correctness. Is there a test suite for ZON, similar to YAML’s or TOML’s? Is there also a formal spec., or at least an ongoing draft to be published once Zig reaches 1.0?

I know that there is a ZON module in the std. lib. and an open issue about adding ZON documentation, but neither seems to cover a test suite or a spec.

I don’t believe there is an official spec right now. Zon is a subset of the Zig grammar, so I don’) think they will put a full spec until the compiler reaches 1.0. The only test suite would be in the compiler source code in this folder.

For example, zon struct tests are found here: https://codeberg.org/ziglang/zig/src/commit/7cef4755c33ca77137fb7e4d83146e27b5703685/lib/std/zon/parse.zig#L1537

There are also example syntax in “test/behavior/zon” and “test/behavior/zon.zig”.

I had built the same, and a small test suit that covers most major areas.

The behavioral and module tests could work, though I was hoping for an agnostic suite. That doesn’t seem to be the case, nor with the formal specification. Anyway, thanks!

Might as well benchmark it against the ZZON one.