summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-03-08 21:56:30 -0400
committerClementTsang <cjhtsang@uwaterloo.ca>2020-03-08 22:01:49 -0400
commitf70cf02414a5263c000f06c1b36ee19e11bf23a5 (patch)
tree8f56d975a58143b785b7c6a7cb61d0e8cb86837e /tests
parent3026fbd1bc6ec3d757dba6ad30428812b63190c9 (diff)
Add configurable default time and interval values
Also added documentation both in app and in the README.
Diffstat (limited to 'tests')
-rw-r--r--tests/arg_rate_tests.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/arg_rate_tests.rs b/tests/arg_rate_tests.rs
index 85b3da0f..7f22431c 100644
--- a/tests/arg_rate_tests.rs
+++ b/tests/arg_rate_tests.rs
@@ -28,7 +28,9 @@ fn test_small_rate() -> Result<(), Box<dyn std::error::Error>> {
.arg("249")
.assert()
.failure()
- .stderr(predicate::str::contains("rate to be greater than 250"));
+ .stderr(predicate::str::contains(
+ "Please set your update rate to be at least 250 milliseconds.",
+ ));
Ok(())
}
@@ -40,7 +42,7 @@ fn test_large_rate() -> Result<(), Box<dyn std::error::Error>> {
.assert()
.failure()
.stderr(predicate::str::contains(
- "rate to be less than unsigned INT_MAX.",
+ "Please set your update rate to be at most unsigned INT_MAX.",
));
Ok(())
}