@@ -57,10 +57,10 @@ mod pronunciation_tests {
5757 let pronunciation = & entry. etymologies [ 0 ] . pronunciations [ 0 ] ;
5858 assert ! ( matches!( pronunciation. kind, PronunciationKind :: Pinyin ) ) ;
5959 assert_eq ! ( pronunciation. value, "ni hao" ) ;
60- assert_eq ! ( pronunciation. urls . len( ) , 1 ) ;
61- assert_eq ! ( pronunciation. urls [ 0 ] . src, "./audio.mp3" ) ;
60+ assert_eq ! ( pronunciation. media . len( ) , 1 ) ;
61+ assert_eq ! ( pronunciation. media [ 0 ] . src, "./audio.mp3" ) ;
6262 assert_eq ! (
63- pronunciation. urls [ 0 ] . mime_type,
63+ pronunciation. media [ 0 ] . mime_type,
6464 Some ( "audio/mpeg" . to_string( ) )
6565 ) ;
6666 }
@@ -81,8 +81,8 @@ mod pronunciation_tests {
8181 let pronunciation = & example. pronunciations [ 0 ] ;
8282 assert ! ( matches!( pronunciation. kind, PronunciationKind :: IPA ) ) ;
8383 assert_eq ! ( pronunciation. value, "həˈləʊ wɜːld" ) ;
84- assert_eq ! ( pronunciation. urls . len( ) , 1 ) ;
85- assert_eq ! ( pronunciation. urls [ 0 ] . src, "./hello.mp3" ) ;
84+ assert_eq ! ( pronunciation. media . len( ) , 1 ) ;
85+ assert_eq ! ( pronunciation. media [ 0 ] . src, "./hello.mp3" ) ;
8686 }
8787
8888 #[ test]
0 commit comments