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.
32 lines
654 B
JSON
32 lines
654 B
JSON
{
|
|
"metadata": {
|
|
"aliases": [
|
|
"fm-only",
|
|
"first-fixture"
|
|
],
|
|
"tags": [
|
|
"parse",
|
|
"test"
|
|
],
|
|
"created_at": "2024-01-15T01:00:00Z",
|
|
"updated_at": "2024-02-20T08:30:00Z",
|
|
"source_type": "note",
|
|
"trust_level": "secondary",
|
|
"user_id_alias": "my-stable-handle",
|
|
"user": {
|
|
"custom_field": "hello",
|
|
"lang": "en",
|
|
"nested_obj": {
|
|
"key": "value"
|
|
},
|
|
"original_timestamps": {
|
|
"created_at": "2024-01-15T10:00:00+09:00"
|
|
},
|
|
"title": "Frontmatter Only",
|
|
"user_id_alias": "my-stable-handle"
|
|
}
|
|
},
|
|
"span_present": true,
|
|
"warnings": []
|
|
}
|