feat(ui): Downloads tab support
This commit is contained in:
+7
-1
@@ -2,7 +2,7 @@
|
||||
mod tests {
|
||||
use pretty_assertions::assert_eq;
|
||||
|
||||
use crate::utils::{convert_runtime, convert_to_gb};
|
||||
use crate::utils::{convert_f64_to_gb, convert_runtime, convert_to_gb};
|
||||
|
||||
#[test]
|
||||
fn test_convert_to_gb() {
|
||||
@@ -10,6 +10,12 @@ mod tests {
|
||||
assert_eq!(convert_to_gb(2662879723), 2.4799999995157123);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_convert_f64_to_gb() {
|
||||
assert_eq!(convert_f64_to_gb(2147483648f64), 2f64);
|
||||
assert_eq!(convert_f64_to_gb(2662879723f64), 2.4799999995157123);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_convert_runtime() {
|
||||
let (hours, minutes) = convert_runtime(154);
|
||||
|
||||
Reference in New Issue
Block a user