Add tests

This commit is contained in:
Augusto Gunsch
2021-11-15 16:58:23 -03:00
parent 77671d960f
commit dc7c0da24c
15 changed files with 432 additions and 26 deletions

1
tests/samples/blacklist Normal file
View File

@@ -0,0 +1 @@
Even <a>

View 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!

View 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!

View 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>

View 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>

View 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
View 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>

View 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!