File: mod.rs

package info (click to toggle)
rust-separator 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 192 kB
  • sloc: makefile: 2
file content (25 lines) | stat: -rw-r--r-- 412 bytes parent folder | download
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
use separator::Separatable;

#[test]
fn nine() {
    let i : u16 = 9;
    assert_eq!("9", &i.separated_string());
}

#[test]
fn ninety() {
    let i : u16 = 90;
    assert_eq!("90", &i.separated_string());
}

#[test]
fn nine_hundred() {
    let i : u16 = 900;
    assert_eq!("900", &i.separated_string());
}

#[test]
fn nine_thousand() {
    let i : u16 = 9000;
    assert_eq!("9,000", &i.separated_string());
}