]> njoseph.me Git - nimcoon.git/blame - tests.nim
Modularity and Tests
[nimcoon.git] / tests.nim
CommitLineData
d65a1dcf
JN
1import unittest
2
3import lib
4
5suite "Playing direct links":
6
7 test "sanitize URL":
8 # give up and stop if this fails
9 let expected = "https://www.youtube.com/watch?v=QOEMv0S8AcA"
10 check(sanitizeURL("https://youtu.be/QOEMv0S8AcA") == expected)
11 check(sanitizeURL("https://www.youtube.com/watch\\?v\\=QOEMv0S8AcA") == expected)