Skip to content

Commit

Permalink
tests: use QSV_SKIP_FORMAT_CHECK for tests when the test input file h…
Browse files Browse the repository at this point in the history
…as unconventional extension
  • Loading branch information
jqnatividad committed Nov 23, 2024
1 parent 191ad95 commit 9273eca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fn table_default() {

let mut cmd = wrk.command("table");
cmd.env("QSV_DEFAULT_DELIMITER", "\t");
cmd.env("QSV_SKIP_FORMAT_CHECK", "1");
cmd.arg("in.file");

let got: String = wrk.stdout(&mut cmd);
Expand All @@ -71,6 +72,7 @@ fn table_pipe_delimiter_env() {
wrk.create_with_delim("in.file", data(), b'|');

let mut cmd = wrk.command("table");
cmd.env("QSV_SKIP_FORMAT_CHECK", "1");
cmd.env("QSV_DEFAULT_DELIMITER", "|");
cmd.arg("in.file");

Expand All @@ -84,6 +86,7 @@ fn table_pipe_delimiter() {
wrk.create_with_delim("in.file", data(), b'|');

let mut cmd = wrk.command("table");
cmd.env("QSV_SKIP_FORMAT_CHECK", "1");
cmd.arg("--delimiter").arg("|").arg("in.file");

let got: String = wrk.stdout(&mut cmd);
Expand All @@ -96,6 +99,7 @@ fn invalid_delimiter_len() {
wrk.create_with_delim("in.file", data(), b'|');

let mut cmd = wrk.command("table");
cmd.env("QSV_SKIP_FORMAT_CHECK", "1");
cmd.arg("--delimiter").arg("||").arg("in.file");

let got: String = wrk.output_stderr(&mut cmd);
Expand Down

0 comments on commit 9273eca

Please sign in to comment.