From 2686da70253330e1dbf65669411ad28879377952 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 16 Jan 2022 16:17:28 +0000 Subject: [PATCH] Reformat code --- sorting/tests/integration_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sorting/tests/integration_tests.rs b/sorting/tests/integration_tests.rs index 11dd016..0a60db2 100644 --- a/sorting/tests/integration_tests.rs +++ b/sorting/tests/integration_tests.rs @@ -1,15 +1,15 @@ use std::fmt::Debug; use rand::{ seq::SliceRandom, - thread_rng + thread_rng, }; use sorting; use test_case::test_case; use sorting::bubble_sort::sort; -#[test_case((0..20).rev().collect(), (0..20).collect() ; "integers")] -#[test_case(vec!["c", "b", "a"], vec!["a", "b", "c"] ; "strings")] -#[test_case(vec![6.0, 10.0, 2.0, 4.0, 8.0], vec![2.0, 4.0, 6.0, 8.0, 10.0] ; "floats")] +#[test_case((0..20).rev().collect(), (0..20).collect(); "integers")] +#[test_case(vec ! ["c", "b", "a"], vec ! ["a", "b", "c"]; "strings")] +#[test_case(vec ! [6.0, 10.0, 2.0, 4.0, 8.0], vec ! [2.0, 4.0, 6.0, 8.0, 10.0]; "floats")] fn can_bubble_sort(mut actual: Vec, expected: Vec) { // Arrange actual.shuffle(&mut thread_rng());