onigiri 0.1.0

This crate is a tool of handling chars.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate onigiri;
use onigiri::tools;


#[test]
fn test_a_series_of_usage() {
    let test_text = "-123 456".to_string();
    let new_vvchar = tools::create_vvchar(&test_text);

    let new_ni32 = tools::Ni32::new(&new_vvchar[0]);
    let new_ni32_2 = tools::Ni32::new(&new_vvchar[1]);

    let addition = new_ni32.attr + new_ni32_2.attr;
    assert_eq!(addition, 333_i32);
}