Skip to content
Myr

Add test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 3d9e230 · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:src/quantity/mod.rs+5 added
181 unmodified lines
182}183184#[test]185fn test_information() {186 use uom::si::information::pebibyte;187188 let information = Information::new::<kibibyte>(8.);189 assert_eq!(information.get::<byte>(), 8192.);190191 let information_kib = information.get::<kibibyte>();192 assert_eq!(information_kib, 8.);193194 let largest_exactly_representable = Information::new::<byte>(9_007_199_254_740_992.);195 assert_eq!(largest_exactly_representable.get::<pebibyte>(), 8.);196}197198#[test]199fn test_format() {
53 unmodified lines