feat(ui): Downloads tab support

This commit is contained in:
2024-12-02 15:57:48 -07:00
parent f338dfcb12
commit f0d8555a8a
7 changed files with 213 additions and 27 deletions
+7 -1
View File
@@ -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);