Files
marqdo-std-data/tests/csv.mq.md
cflmy 848af7a357 migrate: own JSON/CSV and Table serialization; drop the value algorithms
Move JSON, CSV and the Table serialization half of the frozen module to their
unique source authority. Value operations now live only in std-collections;
there is no second implementation or legacy forwarder. Baseline JSON/CSV and
Table GFM expectations are carried into component cases.

Refs cflmy/marqdo#9, cflmy/marqdo-std-data#1
2026-11-26 23:32:22 +08:00

452 B

import
import
csv
std:data/csv

@exec csv

main

行 = csv.解析行("甲,\"乙,丙\",\"说\"\"好\"")

空 = csv.解析行("")

坏 = csv.解析行("\"a")

框 = csv.解析行("a,\"b\"")

多行 = csv.解析("甲,\"乙,丙\"\n\"说\"\"好\",2")

格式化 = csv.格式化(多行.value)

return [行.value, csv.格式化行(行.value), 空.value, 坏.code, 框.value, 多行.ok, 多行.value, 格式化]