summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-02-18 01:55:26 -0500
committerGitHub <noreply@github.com>2023-02-18 01:55:26 -0500
commitf89b243589b5d0e0a3dfe75337a66fa1091d0434 (patch)
treeddc401aac04839252a55d1e46a9d246ab2c0366c /tests
parentedc61d428c9045982030cf2b54ea20ef8cd5baab (diff)
feature: support 3-char hex colours (#1022)
Diffstat (limited to 'tests')
-rw-r--r--tests/invalid_config_tests.rs10
-rw-r--r--tests/invalid_configs/invalid_colour_hex_3.toml2
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/invalid_config_tests.rs b/tests/invalid_config_tests.rs
index 65bdaa1f..cd270f2c 100644
--- a/tests/invalid_config_tests.rs
+++ b/tests/invalid_config_tests.rs
@@ -56,7 +56,7 @@ fn test_invalid_colour_hex() {
.arg("./tests/invalid_configs/invalid_colour_hex.toml")
.assert()
.failure()
- .stderr(predicate::str::contains("invalid hex colour"));
+ .stderr(predicate::str::contains("invalid hex color"));
}
/// Checks for if a hex is too long
@@ -67,7 +67,7 @@ fn test_invalid_colour_hex_2() {
.arg("./tests/invalid_configs/invalid_colour_hex_2.toml")
.assert()
.failure()
- .stderr(predicate::str::contains("invalid hex colour"));
+ .stderr(predicate::str::contains("invalid hex color"));
}
/// Checks unicode hex because the way we originally did it could cause char
@@ -79,7 +79,7 @@ fn test_invalid_colour_hex_3() {
.arg("./tests/invalid_configs/invalid_colour_hex_3.toml")
.assert()
.failure()
- .stderr(predicate::str::contains("invalid hex colour"));
+ .stderr(predicate::str::contains("invalid hex color"));
}
#[test]
@@ -89,7 +89,7 @@ fn test_invalid_colour_name() {
.arg("./tests/invalid_configs/invalid_colour_name.toml")
.assert()
.failure()
- .stderr(predicate::str::contains("invalid named colour"));
+ .stderr(predicate::str::contains("invalid named color"));
}
#[test]
@@ -119,7 +119,7 @@ fn test_invalid_colour_string() {
.arg("./tests/invalid_configs/invalid_colour_string.toml")
.assert()
.failure()
- .stderr(predicate::str::contains("invalid named colour"));
+ .stderr(predicate::str::contains("invalid named color"));
}
#[test]
diff --git a/tests/invalid_configs/invalid_colour_hex_3.toml b/tests/invalid_configs/invalid_colour_hex_3.toml
index 92ce4fd3..1c655ff2 100644
--- a/tests/invalid_configs/invalid_colour_hex_3.toml
+++ b/tests/invalid_configs/invalid_colour_hex_3.toml
@@ -1,2 +1,2 @@
[colors]
-table_header_color="#我死" \ No newline at end of file
+table_header_color = "#加拿大"