tests/data: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:51:09 -05:00
1 parent 653ce4e002
commit 7672980c65
12 files changed
+16 -63

No files matched your search

+3 -5
View File
@@ -1,7 +1,6 @@
-- tests/data/Canon: the canonical text of a decoded data value, the same as tools/fixtures/_data_common.py canon() on
-- Python's parse: null n, true t, false f, numbers #%d (integral under 2^53) or #%.17g, strings s<len>:<bytes>,
-- buffers b<len>:<bytes>, arrays [x,...], objects {k=v,...} sorted by key text, dates d<rfc3339>. A module the data
-- tests require (running it alone does nothing).
-- the canonical text of a decoded data value, the same as tools/fixtures/_data_common.py canon() on Python's parse:
-- null n, true t, false f, numbers #%d (integral under 2^53) or #%.17g, strings s<len>:<bytes>, buffers b<len>:<bytes>,
-- arrays [x,...], objects {k=v,...} sorted by key text, dates d<rfc3339>.
local Types = require("@rosetta/Types")
local Canon = {}
@@ -76,7 +75,6 @@ local function canon(v: any, out: { string })
end
end
-- of(v) -> the canonical text
function Canon.of(v: any): string
local out = {}
canon(v, out)