Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern crate phrase;
- use phrase::english::greeting as en_greeting;
- use phrase::chinese::greeting as zh_greeting;
- fn main() {
- assert_eq!("Hello, Michael", en_greeting::hello("Michael"));
- assert_eq!("你好,麥可", zh_greeting::hello("麥可"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement