use char_str::CharString;

static S: CharString = CharString::from_static_str("hello world");

const STR: &str = S.as_str();

#[test]
fn use_const() {
    assert!(STR.eq("hello world"));
}

#[test]
fn const_len() {
    const {
        let s = CharString::from_static_str("hello");
        assert!(s.len() == 5);
        s
    };
}
