Two markdown fixtures with hand-authored JSON baselines that pin the §0 Q9 derive output across runs: - frontmatter-only.md exercises the YAML happy path with most fields, unknown keys, an `id:` field, and a non-UTC created_at (so the baseline shows original_timestamps preservation). - mixed-lang.md is body-only with no `lang:` field; baseline pins the lingua autodetect result for our enabled language set. A separate `emit_snapshots` test (marked `#[ignore]`) regenerates the baselines from the current parser output. A determinism test parses the fixture twice and asserts equality so any non-determinism (e.g. key ordering, lingua nondeterminism) fails fast.
17 lines
313 B
JSON
17 lines
313 B
JSON
{
|
|
"metadata": {
|
|
"aliases": [],
|
|
"tags": [],
|
|
"created_at": "2024-01-01T00:00:00Z",
|
|
"updated_at": "2024-01-02T00:00:00Z",
|
|
"source_type": "markdown",
|
|
"trust_level": "primary",
|
|
"user_id_alias": null,
|
|
"user": {
|
|
"lang": "en"
|
|
}
|
|
},
|
|
"span_present": false,
|
|
"warnings": []
|
|
}
|