about summary refs log tree commit diff
path: root/src/test/stdtest/unicode.rs
blob: 7c3c65685b6e41ddeae291dd107ff69fc3c82d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import core::*;

use std;

import unicode;

#[test]
fn test_is_digit() {
    assert (unicode::icu::is_digit('0'));
    assert (!unicode::icu::is_digit('m'));
}

#[test]
fn test_is_lower() {
    assert (unicode::icu::is_lower('m'));
    assert (!unicode::icu::is_lower('M'));
}

#[test]
fn test_is_space() {
    assert (unicode::icu::is_space(' '));
    assert (!unicode::icu::is_space('m'));
}

#[test]
fn test_is_upper() {
    assert (unicode::icu::is_upper('M'));
    assert (!unicode::icu::is_upper('m'));
}