From 54dbbae17355c817b59436713b16b4a63d544e54 Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Fri, 12 Jan 2024 13:47:59 +0000 Subject: [PATCH] cargo CI --- members/cucumber-demo/tests/example.rs | 4 ++-- members/revsqrt/tests/revsqrt.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/members/cucumber-demo/tests/example.rs b/members/cucumber-demo/tests/example.rs index 8d55770..a4e9e9f 100644 --- a/members/cucumber-demo/tests/example.rs +++ b/members/cucumber-demo/tests/example.rs @@ -36,8 +36,8 @@ impl AnimalWorld { #[given(regex = r"^a (hungry|satiated) cat$")] async fn hungry_cat(world: &mut AnimalWorld, state: String) { match state.as_str() { - "hungry" => world.cat.hungry = true, - "satiated" => world.cat.hungry = false, + "hungry" => world.cat.hungry = true, + "satiated" => world.cat.hungry = false, _ => unreachable!(), } } diff --git a/members/revsqrt/tests/revsqrt.rs b/members/revsqrt/tests/revsqrt.rs index 9fd059a..e14872e 100644 --- a/members/revsqrt/tests/revsqrt.rs +++ b/members/revsqrt/tests/revsqrt.rs @@ -1,5 +1,3 @@ -use revsqrt::*; - use cucumber::{given, then, when, World}; use rand; @@ -11,7 +9,7 @@ pub struct NumWorld { // is n about the same as m? fn about_same(n: f32, m: f32) -> bool { - (n - m)*1000f32 < 1f32 + (n - m) * 1000f32 < 1f32 } // Steps are defined with `given`, `when` and `then` attributes.