File: std.rs

package info (click to toggle)
rust-size-format 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 148 kB
  • sloc: makefile: 4
file content (11 lines) | stat: -rw-r--r-- 197 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
extern crate size_format;

use size_format::SizeFormatterSI;

#[test]
fn std_works() {
    assert_eq!(
        format!("{}B", SizeFormatterSI::new(8_500_000)),
        "8.5MB".to_string()
    );
}