History

tests/fate/subtitles: add test for LRC with ms -> ms conversion

Kacper Michajłow committed 1 year ago

Commit 193938e1 parent 670c1b92 files · +52 −0Browse files

Showing the changes to tests (2 of 2 files). Show all

Unified · Split

2 files
  1. tests/fate/subtitles.mak +3 −0
  2. tests/ref/fate/sub-lrc-ms-ms-remux +49 −0
tests/fate/subtitles.mak+3−0
@@ -32,6 +32,9 @@ fate-sub-lrc-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc.lrc · 31 unmodified lines
3232 FATE_SUBTITLES-$(call DEMMUX, LRC, LRC) += fate-sub-lrc-ms-remux
3333 fate-sub-lrc-ms-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc-ms.lrc
3434
35+FATE_SUBTITLES-$(call DEMMUX, LRC, LRC) += fate-sub-lrc-ms-ms-remux
36+fate-sub-lrc-ms-ms-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc-ms.lrc -precision 3
37+
3538 FATE_SUBTITLES_ASS-$(call DEMDEC, MICRODVD, MICRODVD) += fate-sub-microdvd
3639 fate-sub-microdvd: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub
3740
tests/ref/fate/sub-lrc-ms-ms-remux+49−0
@@ -0,0 +1,49 @@
1+[ti:Swansong]
2+[al:Breadcrumbs]
3+[ar:Josh Woodward]
4+[length:04:21]
5+[by:StarBrilliant]
6+
7+[-00:01.020](This is a negative timestamp which should not make program crash)
8+[00:35.624]I never thought I'd see the day
9+[00:38.426]I thought that I had finally moved along
10+[00:43.808]And I had let you go so long ago, so long
11+[00:49.269]This is not, this is not where I belong
12+[00:57.384]So I wait for this shallow itch to pass
13+[01:05.981]And I wait, yeah I wait
14+[01:12.142]Hey hey, I'm ok
15+[01:15.183]I don't need this anyway, I'm fine
16+[01:19.825]What's yours and mine
17+[01:23.646]Oh oh, I don't know
18+[01:26.448]What I was ever hoping I would find
19+[01:31.667]But it's time for me to leave this all behind
20+[01:35.744]
21+[01:46.209]I don't regret a single thing
22+[01:48.988]I couldn't say it didn't feel alright
23+[01:54.104]But I don't want to stay and I don't want to fight
24+[01:59.762]All alone, with my foolish appetite
25+[02:07.943]So I wait for this shallow itch to pass
26+[02:16.521]And I wait, yeah I wait
27+[02:22.725]Hey hey, I'm ok
28+[02:25.686]I don't need this anyway, I'm fine
29+[02:30.384]What's yours and mine
30+[02:34.127]Oh oh, I don't know
31+[02:36.988]What I was ever hoping I would find
32+[02:42.289]But it's time for me to leave this all behind
33+[02:45.366]I don't have the heart to give away to you again
34+[02:51.087]I don't have the stomach for it, no one ever wins
35+[02:56.708]We had our fun but I have sung this song to you before
36+[03:01.689]Here's my last refrain
37+[03:08.059]Hey hey, I'm ok
38+[03:10.814]I don't need this anyway, I'm fine
39+[03:15.500]What's yours and mine
40+[03:19.311]Oh oh, I don't know
41+[03:22.112]What I was ever hoping I would find
42+[03:27.343]But it's time for me to leave this all behind
43+[03:30.815]Hey hey, I'm ok
44+[03:32.986]I don't need this anyway, I'm fine
45+[03:38.027]What's yours and mine
46+[03:41.918]Oh oh, I don't know
47+[03:44.549]What I was ever hoping I would find
48+[03:50.044]But it's time for me to leave this all behind
49+[03:54.824]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t