@@ -1248,117 +1248,6 @@ mod tests {
12481248 assert_eq ! ( cfg. realized_text_direction( ) , TextDirection :: RightToLeft ) ;
12491249 }
12501250
1251- #[ test]
1252- fn text_drection_from_lang_code ( ) {
1253- // test all right-to-left languages
1254- assert_eq ! (
1255- TextDirection :: from_lang_code( "ar" ) ,
1256- TextDirection :: RightToLeft
1257- ) ;
1258- assert_eq ! (
1259- TextDirection :: from_lang_code( "ara" ) ,
1260- TextDirection :: RightToLeft
1261- ) ;
1262- assert_eq ! (
1263- TextDirection :: from_lang_code( "arc" ) ,
1264- TextDirection :: RightToLeft
1265- ) ;
1266- assert_eq ! (
1267- TextDirection :: from_lang_code( "ae" ) ,
1268- TextDirection :: RightToLeft
1269- ) ;
1270- assert_eq ! (
1271- TextDirection :: from_lang_code( "ave" ) ,
1272- TextDirection :: RightToLeft
1273- ) ;
1274- assert_eq ! (
1275- TextDirection :: from_lang_code( "egy" ) ,
1276- TextDirection :: RightToLeft
1277- ) ;
1278- assert_eq ! (
1279- TextDirection :: from_lang_code( "he" ) ,
1280- TextDirection :: RightToLeft
1281- ) ;
1282- assert_eq ! (
1283- TextDirection :: from_lang_code( "heb" ) ,
1284- TextDirection :: RightToLeft
1285- ) ;
1286- assert_eq ! (
1287- TextDirection :: from_lang_code( "nqo" ) ,
1288- TextDirection :: RightToLeft
1289- ) ;
1290- assert_eq ! (
1291- TextDirection :: from_lang_code( "pal" ) ,
1292- TextDirection :: RightToLeft
1293- ) ;
1294- assert_eq ! (
1295- TextDirection :: from_lang_code( "phn" ) ,
1296- TextDirection :: RightToLeft
1297- ) ;
1298- assert_eq ! (
1299- TextDirection :: from_lang_code( "sam" ) ,
1300- TextDirection :: RightToLeft
1301- ) ;
1302- assert_eq ! (
1303- TextDirection :: from_lang_code( "syc" ) ,
1304- TextDirection :: RightToLeft
1305- ) ;
1306- assert_eq ! (
1307- TextDirection :: from_lang_code( "syr" ) ,
1308- TextDirection :: RightToLeft
1309- ) ;
1310- assert_eq ! (
1311- TextDirection :: from_lang_code( "fa" ) ,
1312- TextDirection :: RightToLeft
1313- ) ;
1314- assert_eq ! (
1315- TextDirection :: from_lang_code( "per" ) ,
1316- TextDirection :: RightToLeft
1317- ) ;
1318- assert_eq ! (
1319- TextDirection :: from_lang_code( "fas" ) ,
1320- TextDirection :: RightToLeft
1321- ) ;
1322- assert_eq ! (
1323- TextDirection :: from_lang_code( "ku" ) ,
1324- TextDirection :: RightToLeft
1325- ) ;
1326- assert_eq ! (
1327- TextDirection :: from_lang_code( "kur" ) ,
1328- TextDirection :: RightToLeft
1329- ) ;
1330- assert_eq ! (
1331- TextDirection :: from_lang_code( "ur" ) ,
1332- TextDirection :: RightToLeft
1333- ) ;
1334- assert_eq ! (
1335- TextDirection :: from_lang_code( "urd" ) ,
1336- TextDirection :: RightToLeft
1337- ) ;
1338-
1339- // test some left-to-right languages
1340- assert_eq ! (
1341- TextDirection :: from_lang_code( "de" ) ,
1342- TextDirection :: LeftToRight
1343- ) ;
1344- assert_eq ! (
1345- TextDirection :: from_lang_code( "en" ) ,
1346- TextDirection :: LeftToRight
1347- ) ;
1348- assert_eq ! (
1349- TextDirection :: from_lang_code( "es" ) ,
1350- TextDirection :: LeftToRight
1351- ) ;
1352- assert_eq ! (
1353- TextDirection :: from_lang_code( "ja" ) ,
1354- TextDirection :: LeftToRight
1355- ) ;
1356- assert_eq ! (
1357- TextDirection :: from_lang_code( "sv" ) ,
1358- TextDirection :: LeftToRight
1359- ) ;
1360- }
1361-
13621251 #[ test]
13631252 #[ should_panic( expected = "Invalid configuration file" ) ]
13641253 fn invalid_language_type_error ( ) {
0 commit comments