File: nodeprep_tests.rs

package info (click to toggle)
rust-stringprep 0.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 216 kB
  • sloc: makefile: 4
file content (12 lines) | stat: -rw-r--r-- 249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
// Examples from http://josefsson.org/idn.php
extern crate stringprep;

use stringprep::nodeprep;

#[test]
fn test_nodeprep() {
    assert_eq!(
        "räksmörgås.josefsson.org",
        nodeprep("räksmörgås.josefßon.org").unwrap()
    );
}