add some bilibili av/bv example

This commit is contained in:
A.C.Sukazyo Eyre 2024-11-23 17:59:44 +08:00
parent 54be96e511
commit d8c7d1285b
Signed by: Eyre_S
GPG Key ID: EFB47D98FE082FAD

View File

@ -8,7 +8,7 @@ import scala.util.Random
class BiliToolTest extends MornyTests with TableDrivenPropertyChecks { class BiliToolTest extends MornyTests with TableDrivenPropertyChecks {
private val examples = Table( private val examples = Table(
("bv", "av"), ( "bv id" , "av id" ),
( "17x411w7KC" , 170001L ), ( "17x411w7KC" , 170001L ),
( "1Q541167Qg" , 455017605L ), ( "1Q541167Qg" , 455017605L ),
( "1mK4y1C7Bz" , 882584971L ), ( "1mK4y1C7Bz" , 882584971L ),
@ -18,6 +18,9 @@ class BiliToolTest extends MornyTests with TableDrivenPropertyChecks {
( "19m411D7wx" , 1900737470L ), ( "19m411D7wx" , 1900737470L ),
( "1LQ4y1A7im" , 709042411L ), ( "1LQ4y1A7im" , 709042411L ),
( "1L9Uoa9EUx" , 111298867365120L ), ( "1L9Uoa9EUx" , 111298867365120L ),
// from #54 (https://github.com/Eyre-S/Coeur-Morny-Cono/issues/54)
( "1mS411K7Ba" , 1905492274L ),
( "1mgt8edE43" , 113150779333900L )
) )
forAll (examples) { (bv, av) => s"while using av$av/BV$bv :" - { forAll (examples) { (bv, av) => s"while using av$av/BV$bv :" - {