diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-20 23:10:52 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-20 23:10:52 -0500 |
commit | 0697d9dd565f1887ee3922ac0b3bc6b61ff8a3bb (patch) | |
tree | 6ce2f5339e77c12d4744b12b20520428f6dba19e /tests | |
parent | e7352ddef12a64fb9d7a09c7b37ca6608dcc57d9 (diff) |
Fix issue with default file paths not being respected; updated default file paths.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/arg_rate_tests.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/arg_rate_tests.rs b/tests/arg_rate_tests.rs index a32e1b76..206dbf50 100644 --- a/tests/arg_rate_tests.rs +++ b/tests/arg_rate_tests.rs @@ -4,6 +4,8 @@ use std::process::Command; // These tests are mostly here just to ensure that invalid results will be caught when passing arguments... +// TODO: [TEST] Allow for release testing. + //======================RATES======================// fn get_os_binary_loc() -> String { @@ -36,7 +38,9 @@ fn test_large_rate() -> Result<(), Box<dyn std::error::Error>> { .arg("18446744073709551616") .assert() .failure() - .stderr(predicate::str::contains("rate to be less than unsigned INT_MAX.")); + .stderr(predicate::str::contains( + "rate to be less than unsigned INT_MAX.", + )); Ok(()) } @@ -48,7 +52,9 @@ fn test_negative_rate() -> Result<(), Box<dyn std::error::Error>> { .arg("-1000") .assert() .failure() - .stderr(predicate::str::contains("wasn't expected, or isn't valid in this context")); + .stderr(predicate::str::contains( + "wasn't expected, or isn't valid in this context", + )); Ok(()) } |