diff options
Diffstat (limited to 'vendor/punycode/src/bin/test_encode.rs')
-rw-r--r-- | vendor/punycode/src/bin/test_encode.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/punycode/src/bin/test_encode.rs b/vendor/punycode/src/bin/test_encode.rs new file mode 100644 index 000000000..16286fa47 --- /dev/null +++ b/vendor/punycode/src/bin/test_encode.rs @@ -0,0 +1,11 @@ +extern crate punycode; + +use std::io; + +fn main() { + let mut input = String::new(); + io::stdin().read_line(&mut input).unwrap(); + + let s = punycode::encode(&input[0..input.len()-1]); + println!("{}", s.unwrap()); +} |