migrate: own format/io/console/stream sources and preserve the print alias target

Move the official stdlib IO modules to their unique source authority and keep
the frozen public paths, including io.mq.md#写值 as the official print/打印 alias
target. Carry the pre-migration product assertions into component cases with
real resource-endpoint evidence for console.

Refs cflmy/marqdo#9, cflmy/marqdo-std-io#1
This commit was merged in pull request #2.
This commit is contained in:
cflmy committed 2026-11-26 23:30:27 +08:00
1 parent 945e76eed8
commit e18b0b1b40
16 files changed
+1043 -6

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "console",
"file": "console.mq.md",
"require_module": "io/console.mq.md",
"args": [],
"stdin": "hello\n",
"env": {},
"expected_stdout": "",
"expected_terminal": {
"items": [
{
"type": "bool",
"value": true
},
{
"type": "text",
"value": "hello"
}
],
"type": "list"
},
"event_checks": [
{
"kind": "effect",
"payload": {
"operation": "resource.read"
}
}
]
}
+36
View File
@@ -0,0 +1,36 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "format",
"file": "format.mq.md",
"require_module": "format.mq.md",
"args": [],
"stdin": "",
"env": {},
"expected_stdout": "",
"expected_terminal": {
"items": [
{
"decimal": "3",
"type": "int"
},
{
"type": "text",
"value": "[\"文本\", 2, 1.5]"
},
{
"type": "text",
"value": "{a: 1}"
},
{
"type": "text",
"value": "[\"a\", 2]"
},
{
"type": "text",
"value": "None"
}
],
"type": "list"
}
}
+14
View File
@@ -0,0 +1,14 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "io",
"file": "io.mq.md",
"require_module": "io.mq.md",
"args": [],
"stdin": "",
"env": {},
"expected_stdout": "stdlib self-test\n",
"expected_terminal": {
"type": "none"
}
}
+24
View File
@@ -0,0 +1,24 @@
{
"schema": "marqdo.stdlib-test-case",
"schema_version": 1,
"name": "stream",
"file": "stream.mq.md",
"require_module": "io/stream.mq.md",
"args": [],
"stdin": "",
"env": {},
"expected_stdout": "stream\n",
"expected_terminal": {
"items": [
{
"type": "bool",
"value": true
},
{
"decimal": "7",
"type": "int"
}
],
"type": "list"
}
}