From b1de4625b083397b6302a9670af86054389c6e29 Mon Sep 17 00:00:00 2001 From: Cameron Bannasch Date: Thu, 22 Feb 2024 18:41:30 -0800 Subject: [PATCH] Reformat tests --- src/system.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/system.rs b/src/system.rs index 92bf2c7..e7138db 100644 --- a/src/system.rs +++ b/src/system.rs @@ -536,7 +536,10 @@ microcode : 0xea #[test] fn list_cpu_speeds_acs_test() -> Result<(), Error> { // Type check - assert_eq!(type_of(list_cpu_speeds().unwrap()), type_of(Vec::::new())); + assert_eq!( + type_of(list_cpu_speeds().unwrap()), + type_of(Vec::::new()) + ); for x in list_cpu_speeds().unwrap() { assert!(x > 0); @@ -547,7 +550,10 @@ microcode : 0xea #[test] fn list_cpu_temp_acs_test() { // Type check - assert_eq!(type_of(list_cpu_temp().unwrap()), type_of(Vec::::new())); + assert_eq!( + type_of(list_cpu_temp().unwrap()), + type_of(Vec::::new()) + ); for x in list_cpu_temp().unwrap() { assert!(x > -100); @@ -557,7 +563,10 @@ microcode : 0xea #[test] fn list_cpu_governors_acs_test() { // Type check - assert_eq!(type_of(list_cpu_governors().unwrap()), type_of(Vec::::new())); + assert_eq!( + type_of(list_cpu_governors().unwrap()), + type_of(Vec::::new()) + ); for x in list_cpu_governors().unwrap() { assert!(x == "powersave" || x == "performance" || x == "schedutil");