From 5a36cd18a31ca1fbdc62d4e594933a6327fe4e7d Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Tue, 21 Jul 2020 20:57:17 -0500 Subject: Fix path construction of 'sample_02_tree' for test --- src/interactive/app_test/unit.rs | 2 -- src/interactive/app_test/utils.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/interactive/app_test/unit.rs b/src/interactive/app_test/unit.rs index 8910025..e27d456 100644 --- a/src/interactive/app_test/unit.rs +++ b/src/interactive/app_test/unit.rs @@ -17,8 +17,6 @@ fn it_can_handle_ending_traversal_reaching_top_but_skipping_levels() -> Result<( Ok(()) } -// Won't work on windows as there are backslashes in the paths :D -#[cfg_attr(windows, ignore)] #[test] fn it_can_handle_ending_traversal_without_reaching_the_top() -> Result<()> { let (_, app) = initialized_app_and_terminal_from_fixture(&["sample-02"])?; diff --git a/src/interactive/app_test/utils.rs b/src/interactive/app_test/utils.rs index 90748b2..454acc2 100644 --- a/src/interactive/app_test/utils.rs +++ b/src/interactive/app_test/utils.rs @@ -255,7 +255,7 @@ pub fn sample_02_tree() -> Tree { let r = add_node("", root_size, None); { let s = add_node( - format!("{}/{}", FIXTURE_PATH, "sample-02").as_str(), + Path::new(FIXTURE_PATH).join("sample-02").to_str().unwrap(), root_size, Some(r), ); -- cgit v1.2.3