From 5125a1ddac9ed3ab1d50cd0de1dbb88ee396dc6d Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 23 Oct 2016 17:13:32 -0700 Subject: [PATCH] Shuffle tests in run_order To make sure that it isn't just running them in justfile order. --- src/tests.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index 7238619..e07c5e6 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -352,17 +352,17 @@ fn run_order() { let tmp = tempdir::TempDir::new("run_order").unwrap_or_else(|err| panic!("tmpdir: failed to create temporary directory: {}", err)); let path = tmp.path().to_str().unwrap_or_else(|| panic!("tmpdir: path was not valid UTF-8")).to_owned(); let text = r" -a: - @touch a - b: a @mv a b -c: b - @mv b c +a: + @touch a d: c @rm c + +c: b + @mv b c "; super::std::env::set_current_dir(path).expect("failed to set current directory"); parse_success(text).run(&["a", "d"]).unwrap();