From 97b3abf5204badf60eb79be6be07285bdef83049 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Wed, 13 Apr 2022 19:08:28 +0100 Subject: [PATCH] Rename test files for Windows compatibility --- test/{choose_-4:-2.txt => choose_-4x-2.txt} | 0 test/{choose_0:1.txt => choose_0x1.txt} | 0 test/{choose_1:3of%.txt => choose_1x3of%.txt} | 0 test/{choose_4:2.txt => choose_4x2.txt} | 0 test/{choose_:1.txt => choose_x1.txt} | 0 test/e2e_test.sh | 10 +++++----- 6 files changed, 5 insertions(+), 5 deletions(-) rename test/{choose_-4:-2.txt => choose_-4x-2.txt} (100%) rename test/{choose_0:1.txt => choose_0x1.txt} (100%) rename test/{choose_1:3of%.txt => choose_1x3of%.txt} (100%) rename test/{choose_4:2.txt => choose_4x2.txt} (100%) rename test/{choose_:1.txt => choose_x1.txt} (100%) diff --git a/test/choose_-4:-2.txt b/test/choose_-4x-2.txt similarity index 100% rename from test/choose_-4:-2.txt rename to test/choose_-4x-2.txt diff --git a/test/choose_0:1.txt b/test/choose_0x1.txt similarity index 100% rename from test/choose_0:1.txt rename to test/choose_0x1.txt diff --git a/test/choose_1:3of%.txt b/test/choose_1x3of%.txt similarity index 100% rename from test/choose_1:3of%.txt rename to test/choose_1x3of%.txt diff --git a/test/choose_4:2.txt b/test/choose_4x2.txt similarity index 100% rename from test/choose_4:2.txt rename to test/choose_4x2.txt diff --git a/test/choose_:1.txt b/test/choose_x1.txt similarity index 100% rename from test/choose_:1.txt rename to test/choose_x1.txt diff --git a/test/e2e_test.sh b/test/e2e_test.sh index 18e9628..320521b 100755 --- a/test/e2e_test.sh +++ b/test/e2e_test.sh @@ -6,15 +6,15 @@ orig_dir="$(pwd)" cd "$(git rev-parse --show-toplevel)" # basic functionality -diff -w <(cargo run -- 0:1 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_0:1.txt") +diff -w <(cargo run -- 0:1 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_0x1.txt") diff -w <(cargo run -- 0 3 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_0_3.txt") -diff -w <(cargo run -- :1 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_:1.txt") +diff -w <(cargo run -- :1 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_x1.txt") diff -w <(cargo run -- 9 3 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_9_3.txt") diff -w <(cargo run -- 9 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_9.txt") diff -w <(cargo run -- 12 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_12.txt") -diff -w <(cargo run -- 4:2 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_4:2.txt") -diff -w <(cargo run -- -4:-2 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_-4:-2.txt") -diff -w <(cargo run -- 1:3 -o % -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_1:3of%.txt") +diff -w <(cargo run -- 4:2 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_4x2.txt") +diff -w <(cargo run -- -4:-2 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_-4x-2.txt") +diff -w <(cargo run -- 1:3 -o % -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_1x3of%.txt") diff -w <(cargo run -- 1 3 -o % -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_1_3of%.txt") diff -w <(cargo run -- 1 3 -o '' -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_1_3of.txt") diff -w <(cargo run -- 3:6 -c -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_0_3_c.txt")