|
1 | 1 | use assert_cmd::Command; |
| 2 | +use nomino::input::MAIN_SEPARATOR; |
2 | 3 | use std::fs::create_dir_all; |
3 | 4 | use std::fs::read_dir; |
4 | 5 | use std::fs::File; |
5 | | -use std::path::MAIN_SEPARATOR; |
6 | 6 |
|
7 | | -#[cfg(not(target_os = "windows"))] |
8 | 7 | #[test] |
9 | 8 | fn test_default() { |
10 | 9 | let dir = tempfile::tempdir().unwrap(); |
@@ -49,7 +48,6 @@ fn test_default() { |
49 | 48 | dir.close().unwrap(); |
50 | 49 | } |
51 | 50 |
|
52 | | -#[cfg(not(target_os = "windows"))] |
53 | 51 | #[test] |
54 | 52 | fn test_default_not_overwrite() { |
55 | 53 | let dir = tempfile::tempdir().unwrap(); |
@@ -94,7 +92,6 @@ fn test_default_not_overwrite() { |
94 | 92 | dir.close().unwrap(); |
95 | 93 | } |
96 | 94 |
|
97 | | -#[cfg(not(target_os = "windows"))] |
98 | 95 | #[test] |
99 | 96 | fn test_default_overwrite() { |
100 | 97 | let dir = tempfile::tempdir().unwrap(); |
@@ -140,7 +137,6 @@ fn test_default_overwrite() { |
140 | 137 | dir.close().unwrap(); |
141 | 138 | } |
142 | 139 |
|
143 | | -#[cfg(not(target_os = "windows"))] |
144 | 140 | #[test] |
145 | 141 | fn test_default_subdir() { |
146 | 142 | let dir = tempfile::tempdir().unwrap(); |
@@ -200,7 +196,6 @@ fn test_default_subdir() { |
200 | 196 | dir.close().unwrap(); |
201 | 197 | } |
202 | 198 |
|
203 | | -#[cfg(not(target_os = "windows"))] |
204 | 199 | #[test] |
205 | 200 | fn test_default_subdir_depth() { |
206 | 201 | let dir = tempfile::tempdir().unwrap(); |
@@ -262,7 +257,6 @@ fn test_default_subdir_depth() { |
262 | 257 | dir.close().unwrap(); |
263 | 258 | } |
264 | 259 |
|
265 | | -#[cfg(not(target_os = "windows"))] |
266 | 260 | #[test] |
267 | 261 | fn test_default_subdir_max_depth() { |
268 | 262 | let dir = tempfile::tempdir().unwrap(); |
@@ -326,7 +320,6 @@ fn test_default_subdir_max_depth() { |
326 | 320 | dir.close().unwrap(); |
327 | 321 | } |
328 | 322 |
|
329 | | -#[cfg(not(target_os = "windows"))] |
330 | 323 | #[test] |
331 | 324 | fn test_default_subdir_not_overwrite() { |
332 | 325 | let dir = tempfile::tempdir().unwrap(); |
@@ -386,7 +379,6 @@ fn test_default_subdir_not_overwrite() { |
386 | 379 | dir.close().unwrap(); |
387 | 380 | } |
388 | 381 |
|
389 | | -#[cfg(not(target_os = "windows"))] |
390 | 382 | #[test] |
391 | 383 | fn test_default_subdir_overwrite() { |
392 | 384 | let dir = tempfile::tempdir().unwrap(); |
|
0 commit comments