1 2 3 4 5 6 7 8 9
use super::BundledFont; #[test] fn names_round_trip() { for font in BundledFont::ALL { assert_eq!(BundledFont::from_name(font.name()), Some(*font)); } assert_eq!(BundledFont::from_name("hersheysans"), None); }