use blue_archive::Language; macro_rules! lang_test { ($test_name:ident, $language_type:expr) => { #[tokio::test] async fn $test_name() { assert!(blue_archive::fetch_all_equipment($language_type) .await .is_ok()) } }; } lang_test!(fetch_equipment_by_english, Language::English); lang_test!(fetch_equipment_by_japanese, Language::Japanese); lang_test!(fetch_equipment_by_chinese, Language::Chinese); lang_test!(fetch_equipment_by_korean, Language::Korean); lang_test!(fetch_equipment_by_thai, Language::Thai); lang_test!(fetch_equipment_by_taiwanese, Language::Taiwanese);