Add tests
This commit is contained in:
1
tests/samples/blacklist
Normal file
1
tests/samples/blacklist
Normal file
@@ -0,0 +1 @@
|
||||
Even <a>
|
19
tests/samples/sample1-cleaned-stripped-shifted-1h.srt
Normal file
19
tests/samples/sample1-cleaned-stripped-shifted-1h.srt
Normal file
@@ -0,0 +1,19 @@
|
||||
1
|
||||
01:00:48,900 --> 01:00:49,800
|
||||
This one is full of HTML tags.
|
||||
Above, below, everywhere
|
||||
|
||||
2
|
||||
01:00:53,500 --> 01:00:55,200
|
||||
The script should not
|
||||
care whether the tag is
|
||||
valid or not
|
||||
|
||||
3
|
||||
01:00:56,000 --> 01:00:57,000
|
||||
It should just strip all of
|
||||
them mercilessly
|
||||
|
||||
4
|
||||
01:00:58,100 --> 01:00:59,600
|
||||
Including this one!
|
19
tests/samples/sample1-cleaned-stripped.srt
Normal file
19
tests/samples/sample1-cleaned-stripped.srt
Normal file
@@ -0,0 +1,19 @@
|
||||
1
|
||||
00:00:48,900 --> 00:00:49,800
|
||||
This one is full of HTML tags.
|
||||
Above, below, everywhere
|
||||
|
||||
2
|
||||
00:00:53,500 --> 00:00:55,200
|
||||
The script should not
|
||||
care whether the tag is
|
||||
valid or not
|
||||
|
||||
3
|
||||
00:00:56,000 --> 00:00:57,000
|
||||
It should just strip all of
|
||||
them mercilessly
|
||||
|
||||
4
|
||||
00:00:58,100 --> 00:00:59,600
|
||||
Including this one!
|
19
tests/samples/sample1-cleaned.srt
Normal file
19
tests/samples/sample1-cleaned.srt
Normal file
@@ -0,0 +1,19 @@
|
||||
1
|
||||
00:00:48,900 --> 00:00:49,800
|
||||
<b>This one is full of HTML tags.</b>
|
||||
<i>Above, below, everywhere</i>
|
||||
|
||||
2
|
||||
00:00:53,500 --> 00:00:55,200
|
||||
<html>The script should not
|
||||
care whether the tag is
|
||||
valid or not</html>
|
||||
|
||||
3
|
||||
00:00:56,000 --> 00:00:57,000
|
||||
<p>It should just strip all of
|
||||
them mercilessly</p>
|
||||
|
||||
4
|
||||
00:00:58,100 --> 00:00:59,600
|
||||
<ul>Including this one!</ul>
|
0
tests/samples/sample1-shifted-minus-1h.srt
Normal file
0
tests/samples/sample1-shifted-minus-1h.srt
Normal file
14
tests/samples/sample1-shifted-minus-52s.srt
Normal file
14
tests/samples/sample1-shifted-minus-52s.srt
Normal file
@@ -0,0 +1,14 @@
|
||||
1
|
||||
00:00:01,500 --> 00:00:03,200
|
||||
<html>The script should not
|
||||
care whether the tag is
|
||||
valid or not</html>
|
||||
|
||||
2
|
||||
00:00:04,000 --> 00:00:05,000
|
||||
<p>It should just strip all of
|
||||
them mercilessly</p>
|
||||
|
||||
3
|
||||
00:00:06,100 --> 00:00:07,600
|
||||
<ul>Including this one!</ul>
|
23
tests/samples/sample1-stripped.srt
Normal file
23
tests/samples/sample1-stripped.srt
Normal file
@@ -0,0 +1,23 @@
|
||||
1
|
||||
00:00:48,900 --> 00:00:49,800
|
||||
This one is full of HTML tags.
|
||||
Above, below, everywhere
|
||||
|
||||
2
|
||||
00:00:51,800 --> 00:00:52,700
|
||||
Even 's!
|
||||
|
||||
3
|
||||
00:00:53,500 --> 00:00:55,200
|
||||
The script should not
|
||||
care whether the tag is
|
||||
valid or not
|
||||
|
||||
4
|
||||
00:00:56,000 --> 00:00:57,000
|
||||
It should just strip all of
|
||||
them mercilessly
|
||||
|
||||
5
|
||||
00:00:58,100 --> 00:00:59,600
|
||||
Including this one!
|
23
tests/samples/sample1.srt
Normal file
23
tests/samples/sample1.srt
Normal file
@@ -0,0 +1,23 @@
|
||||
1
|
||||
00:00:48,900 --> 00:00:49,800
|
||||
<b>This one is full of HTML tags.</b>
|
||||
<i>Above, below, everywhere</i>
|
||||
|
||||
2
|
||||
00:00:51,800 --> 00:00:52,700
|
||||
<a href='dummy'>Even <a>'s!</a>
|
||||
|
||||
3
|
||||
00:00:53,500 --> 00:00:55,200
|
||||
<html>The script should not
|
||||
care whether the tag is
|
||||
valid or not</html>
|
||||
|
||||
4
|
||||
00:00:56,000 --> 00:00:57,000
|
||||
<p>It should just strip all of
|
||||
them mercilessly</p>
|
||||
|
||||
5
|
||||
00:00:58,100 --> 00:00:59,600
|
||||
<ul>Including this one!</ul>
|
6
tests/samples/sample2.srt
Normal file
6
tests/samples/sample2.srt
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
1
|
||||
00:01:00,000 --> 00:01:01,000
|
||||
Just a dummy line, I'm sorry
|
||||
But there's whitespace!
|
||||
|
Reference in New Issue
Block a user