diff options
author | Roy Ivy III <rivy.dev@gmail.com> | 2020-07-21 20:57:17 -0500 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-22 10:09:11 +0800 |
commit | 5a36cd18a31ca1fbdc62d4e594933a6327fe4e7d (patch) | |
tree | 22107fd0c6e525ca30451e933edd4b09468fd409 | |
parent | 62c58330b41cb19adde1c7d2b08a5db251be3580 (diff) |
Fix path construction of 'sample_02_tree' for test
-rw-r--r-- | src/interactive/app_test/unit.rs | 2 | ||||
-rw-r--r-- | src/interactive/app_test/utils.rs | 2 |
2 files changed, 1 insertions, 3 deletions
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), ); |