| 1 | includerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include!!(concatrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/concat!!(envrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/env!!("OUT_DIR"), "/google.languages_public.rs")); |
| 2 | includerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include!!(concatrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/concat!!(envrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/env!!("OUT_DIR"), "/data.rs")); |
| 3 | |
| 4 | #[cfg(test)] |
| 5 | mod testsrust-analyzer cargo google-fonts-languages 0.7.2 tests/ { |
| 6 | use superrust-analyzer cargo google-fonts-languages 0.7.2 crate/::*; |
| 7 | |
| 8 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 9 | fn regionsrust-analyzer cargo google-fonts-languages 0.7.2 tests/regions().() { |
| 10 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!((*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().REGIONS).contains_key("BG")); |
| 11 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(REGIONS.get("BG").unwrap().name.as_deref(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Bulgaria")); |
| 12 | } |
| 13 | |
| 14 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 15 | fn scriptsrust-analyzer cargo google-fonts-languages 0.7.2 tests/scripts().() { |
| 16 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!((*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().SCRIPTS).contains_key("Arab")); |
| 17 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(SCRIPTS.get("Arab").unwrap().name.as_deref(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("Arabic")); |
| 18 | } |
| 19 | |
| 20 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 21 | fn languagesrust-analyzer cargo google-fonts-languages 0.7.2 tests/languages().() { |
| 22 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(LANGUAGES.len() >rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd#gt(). 1000); |
| 23 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!((*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().LANGUAGES).contains_key("ar_Arab")); |
| 24 | } |
| 25 | } |