1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

cp: fixed failing tests due to git's weirdness with files

Made variable names in test_cp.rs more descriptive
This commit is contained in:
Jeremy Neptune 2016-07-15 15:29:47 -04:00
parent a3004fbbff
commit b59016cbd7
No known key found for this signature in database
GPG key ID: C09EDE50FDEF1BB7
2 changed files with 4 additions and 4 deletions

0
tests/fixtures/cp/hello_dir/hello.txt vendored Normal file
View file

View file

@ -44,17 +44,17 @@ fn test_cp_with_dirs() {
let at = &ts.fixtures;
//using -t option
let result_to_dir_t = ts.util_cmd()
let result_to_dir = ts.util_cmd()
.arg(TEST_HELLO_WORLD_SOURCE)
.arg(TEST_COPY_TO_FOLDER)
.run();
assert!(result_to_dir_t.success);
assert!(result_to_dir.success);
assert_eq!(at.read(TEST_COPY_TO_FOLDER_FILE), "Hello, World!\n");
let result_from_dir_t = ts.util_cmd()
let result_from_dir = ts.util_cmd()
.arg(TEST_COPY_FROM_FOLDER_FILE)
.arg(TEST_HELLO_WORLD_DEST)
.run();
assert!(result_from_dir_t.success);
assert!(result_from_dir.success);
assert_eq!(at.read(TEST_HELLO_WORLD_DEST), "Hello, World!\n");
}