Created
November 25, 2018 17:04
-
-
Save AlbanMinassian/24eafa8253f69a5ba961ed3144b0d6a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate iso639_1; | |
use iso639_1::{Iso639_1, get_enum, get_code_iso639_3}; | |
pub fn main() { | |
assert!(Iso639_1::Fr != Iso639_1::En); | |
assert!(get_enum("fr").unwrap() == Iso639_1::Fr); | |
assert!(get_code_iso639_3("fr").unwrap() == "fra"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment