fix: float wire precision, native stack safety, refs diagnostics and fixtures
Findings from the conformance corpus workstream, all fixed at the source: - value/wire: enable serde_json's float_roundtrip so typed wire floats keep their exact digits across foreign/plugin boundaries (Python pi*9 now stays 28.274333882308138). - host: default interpreter stack budget lowered to 128 frames so deeply recursive documents hit a structured resource.exhausted instead of exhausting the native debug-build Rust stack; --stack remains available. - frontend/map: calling an external HTTP(S) link is reported as ref.unresolved (consistent with other unresolvable call targets) instead of math.unsupported. - frontend/analyze: invalid front matter emits a single frontmatter.invalid diagnostic (the YAML error is not repeated by the imports pass). - spec/mapping: clarify that would-be execution nodes outside any function body are inert with a markdown.inert_executable warning (no "return outside a function" hard-error claim). - tests: add the conformance corpus and harness (150 AST goldens, 36 semantic goldens, 48 hard-error + 6 warning + 10 runtime-error negatives, CLI/module/ plugin integration tests, prose-invariance properties) and update the three reported observations to the fixed behaviour.
This commit is contained in:
1 parent
33341a0e92
commit
847c2c1580
511 files changed
+11678
-26
No files matched your search
@@ -0,0 +1,154 @@
|
||||
{
|
||||
"kind": "document",
|
||||
"span": {
|
||||
"start": 0,
|
||||
"end": 60
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "table",
|
||||
"alignments": [
|
||||
"none",
|
||||
"none"
|
||||
],
|
||||
"span": {
|
||||
"start": 0,
|
||||
"end": 60
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "table_row",
|
||||
"header": true,
|
||||
"span": {
|
||||
"start": 0,
|
||||
"end": 19
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "table_cell",
|
||||
"span": {
|
||||
"start": 1,
|
||||
"end": 9
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "text",
|
||||
"span": {
|
||||
"start": 2,
|
||||
"end": 8
|
||||
},
|
||||
"literal": "名称"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": "table_cell",
|
||||
"span": {
|
||||
"start": 10,
|
||||
"end": 18
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "text",
|
||||
"span": {
|
||||
"start": 11,
|
||||
"end": 17
|
||||
},
|
||||
"literal": "数量"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": "table_row",
|
||||
"header": false,
|
||||
"span": {
|
||||
"start": 34,
|
||||
"end": 48
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "table_cell",
|
||||
"span": {
|
||||
"start": 35,
|
||||
"end": 43
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "text",
|
||||
"span": {
|
||||
"start": 36,
|
||||
"end": 42
|
||||
},
|
||||
"literal": "苹果"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": "table_cell",
|
||||
"span": {
|
||||
"start": 44,
|
||||
"end": 47
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "text",
|
||||
"span": {
|
||||
"start": 45,
|
||||
"end": 46
|
||||
},
|
||||
"literal": "3"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": "table_row",
|
||||
"header": false,
|
||||
"span": {
|
||||
"start": 49,
|
||||
"end": 60
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "table_cell",
|
||||
"span": {
|
||||
"start": 50,
|
||||
"end": 55
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "text",
|
||||
"span": {
|
||||
"start": 51,
|
||||
"end": 54
|
||||
},
|
||||
"literal": "梨"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"kind": "table_cell",
|
||||
"span": {
|
||||
"start": 56,
|
||||
"end": 59
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"kind": "text",
|
||||
"span": {
|
||||
"start": 57,
|
||||
"end": 58
|
||||
},
|
||||
"literal": "5"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user