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:
1 parent
945e76eed8
commit
e18b0b1b40
16 files changed
+1043
-6
No files matched your search
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user