Skip to content

Commit

Permalink
Reformat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Camerooooon committed Feb 23, 2024
1 parent 3eb429b commit b1de462
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<i32>::new()));
assert_eq!(
type_of(list_cpu_speeds().unwrap()),
type_of(Vec::<i32>::new())
);

for x in list_cpu_speeds().unwrap() {
assert!(x > 0);
Expand All @@ -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::<i32>::new()));
assert_eq!(
type_of(list_cpu_temp().unwrap()),
type_of(Vec::<i32>::new())
);

for x in list_cpu_temp().unwrap() {
assert!(x > -100);
Expand All @@ -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::<String>::new()));
assert_eq!(
type_of(list_cpu_governors().unwrap()),
type_of(Vec::<String>::new())
);

for x in list_cpu_governors().unwrap() {
assert!(x == "powersave" || x == "performance" || x == "schedutil");
Expand Down

0 comments on commit b1de462

Please sign in to comment.