To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit e2de9d04 authored by Stefan Schindler's avatar Stefan Schindler
Browse files

Delta Test

parent 4970ef6b
......@@ -535,4 +535,14 @@ mod test {
fn sub_bytes_mixed_down() {
assert_eq!(Byte(2048 - 2), KiloByte(2) - Byte(2));
}
#[test]
fn delta_byte_per_second_0() {
let zero = Byte(0);
let no_time = ::std::time::Duration::new(0, 0);
let zero_bps = zero.byte_per_second( no_time );
assert_eq!(zero, zero_bps)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment