tests/playlist, tests/subtitle: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:49:12 -05:00
1 parent e0ab895027
commit 928ac9b39f
6 files changed
+10 -44

No files matched your search

+1 -4
View File
@@ -1,6 +1,4 @@
-- subtitle/ass tests: ffmpeg's ASS output of a random script (times to the centisecond, text through the override
-- markup), hand-written ASS (styles, comments, commas in text, overrides, [Fonts]) and SSA v4 files against ffmpeg's
-- SRT conversion of them, styles as data, round trips through the encoder, the contract and the fuzz pass.
-- subtitle/ass tests: ffmpeg's ASS output and hand-written ASS / SSA files against ffmpeg's SRT conversion.
-- Fixtures: tools/fixtures/subtitles.py.
local T = require("@tests/T")
local Ass = require("@rosetta/subtitle/ass")
@@ -87,7 +85,6 @@ for _, s in { a, ssa, subs } do
end
end
t:eq(buffer.tostring(Ass.encode(a) :: buffer), Fx.hand[2].data, "hand ASS written back byte for byte")
-- cues from another format: markup converted, a Default style made
do
local out = Ass.encode({ kind = "subtitles", cues = { { start = 1, stop = 2.5, text = "<i>it</i> and <b>bold</b>\nline <font color=\"red\">x</font>" } }, styles = {}, meta = {} } :: any) :: buffer
local back = Ass.decode(Bytes.reader(out))