Files
QZMusic_PC-pre/amll-local/packages/lyric/test/timestampcase.fixture.ts

25 lines
697 B
TypeScript
Raw Normal View History

const timeStampsTestCasesReg: [string, number][] = [
["1", 1_000],
["2.1", 2_100],
["3.12", 3_120],
["4.123", 4_123],
["5.1234", 5_123],
["6.12354", 6_124],
["7.123456", 7_123],
["8.00100000", 8_001],
["61", 61_000],
["2:01", 2 * 60_000 + 1_000],
["3:1", 3 * 60_000 + 1_000],
["4:1.1", 4 * 60_000 + 1_100],
["5:1.12", 5 * 60_000 + 1_120],
["06:1.12", 6 * 60_000 + 1_120],
["07:01.012", 7 * 60_000 + 1_012],
["61:21", 61 * 60_000 + 21_000],
["1:2:3.123", 1 * 3600_000 + 2 * 60_000 + 3_123],
["01:05:03.123", 1 * 3600_000 + 5 * 60_000 + 3_123],
];
export const timeStampsTestCases = timeStampsTestCasesReg.toSorted(
([, t1], [, t2]) => t1 - t2,
) as readonly [string, number][];