Continuously keep playing till I press "q"
[nimcoon.git] / tests.nim
CommitLineData
d65a1dcf
JN
1import unittest
2
3import lib
4
5suite "Playing direct links":
6
7 test "sanitize URL":
d65a1dcf
JN
8 let expected = "https://www.youtube.com/watch?v=QOEMv0S8AcA"
9 check(sanitizeURL("https://youtu.be/QOEMv0S8AcA") == expected)
10 check(sanitizeURL("https://www.youtube.com/watch\\?v\\=QOEMv0S8AcA") == expected)