123456789 |
- Describe(youtube_id_extractor)
- {
- It(test1){Assert::That(youtubeId("https://www.youtube.com/watch?v=XPEr1cArWRg"), Equals("XPEr1cArWRg"));}
- It(test2){Assert::That(youtubeId("http://www.youtube.com/watch?v=-SNQGyVW_YI&t=8871"), Equals("-SNQGyVW_YI"));}
- It(test3){Assert::That(youtubeId("https://youtube.com/watch?t=4m40s&v=vxP3bY-XxY4"), Equals("vxP3bY-XxY4"));}
- It(test4){Assert::That(youtubeId("www.youtube.com/watch?list=PL3QZUm48uWnsdFakp3A2fI-NzmfH1jyQe&v=yv56ncTdTmU&index=8"), Equals("yv56ncTdTmU"));}
- It(test5){Assert::That(youtubeId("https://youtu.be/BCDEDi5gDPo"), Equals("BCDEDi5gDPo"));}
- It(test7){Assert::That(youtubeId("https://www.youtube-nocookie.com/embed/2w9SQjdn9U4"), Equals("2w9SQjdn9U4"));}
- };
|