You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let text:&str = "A popular scriptures is Rev 12:12. It is quoted often.";
123
71
let expect:String = "A popular scriptures is [Rev 12:12](https://www.jw.org/en/library/bible/study-bible/books/revelation/12/#v66012012). It is quoted often.".to_string();
124
-
Locale::new(Locale::en_us);
125
-
let got:String = Script::new(text).url(Locale::get(),&Site::JwOrg).get_text();
126
-
assert_eq!(got, expect)
127
-
}
128
-
129
-
#[test]
130
-
fnt_mateo_url(){
131
-
let text:&str = "A popular scriptures is Mateo 12:12. It is quoted often.";
132
-
let expect:String = "A popular scriptures is [Mateo 12:12](https://www.jw.org/en/library/bible/study-bible/books/mateo/12/#v40012012). It is quoted often.".to_string();
133
-
Locale::new(Locale::es_es);
134
-
let got:String = Script::new(text).url(Locale::get(),&Site::JwOrg).get_text();
72
+
let got:String = Script::new(text).url(&Site::JwOrg).get_text();
0 commit comments