#[test]
fn fmt_bytes_below_kib_stays_in_bytes() {
	assert_eq!(format!("{}", crate::FmtBytes(0)), "0 B");
	assert_eq!(format!("{}", crate::FmtBytes(999)), "999 B");
	assert_eq!(format!("{}", crate::FmtBytes(1023)), "0.99 kiB");
}

#[test]
fn fmt_bytes_at_kib_boundary_uses_binary_prefix() {
	assert_eq!(format!("{}", crate::FmtBytes(1024)), "1.00 kiB");
}

#[test]
fn fmt_bytes_uses_binary_division() {
	assert_eq!(format!("{}", crate::FmtBytes(1024 * 1024)), "1.00 MiB");
	assert_eq!(format!("{}", crate::FmtBytes(1024 * 1024 * 1024)), "1.00 GiB");
}
