From 8ba47aa0df3a026b6d67d8b67879c11860ee40e9 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 6 Mar 2021 18:50:23 +0100 Subject: [PATCH] Fix invalid test --- src/utils/string_utils.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/string_utils.rs b/src/utils/string_utils.rs index 41fb281..5006f20 100644 --- a/src/utils/string_utils.rs +++ b/src/utils/string_utils.rs @@ -97,11 +97,11 @@ pub fn check_emoji_code(shortcut: &str) -> bool { /// Check the validity of an HTML color /// /// ``` -/// use comunic_server::utils::string_utils::check_emoji_code; +/// use comunic_server::utils::string_utils::check_html_color; /// -/// assert_eq!(check_emoji_code("AAFF00"), true); -/// assert_eq!(check_emoji_code("ABC"), false); -/// assert_eq!(check_emoji_code("UUFF00"), false); +/// assert_eq!(check_html_color("AAFF00"), true); +/// assert_eq!(check_html_color("ABC"), false); +/// assert_eq!(check_html_color("UUFF00"), false); /// ``` pub fn check_html_color(color: &str) -> bool { let r = Regex::new(r"^[A-F0-9]{6}$").unwrap();