File: useit.rs

package info (click to toggle)
rust-std-prelude 0.2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 96 kB
  • sloc: makefile: 4
file content (14 lines) | stat: -rw-r--r-- 305 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate std_prelude;
use std_prelude::*;

#[test]
fn it_works() {
    let mut h = HashMap::new();
    h.insert("hello", 4);

    assert_eq!("hello", str::from_utf8(b"hello").unwrap());
    assert_eq!(42, usize::from_str("42").unwrap());
    assert!(usize::MAX > 2);

    // assert!(i128::MAX > 2);
}