From b055b1e304bc7bca7c55a64ce8a7bb39c6961911 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Thu, 14 Mar 2024 00:45:48 +0100 Subject: [PATCH] test: check empty strings --- tests/test.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test.rs b/tests/test.rs index 66673af..903a66a 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -112,6 +112,9 @@ fn decode_upper() { #[test] fn check() { + assert_eq!(const_hex::check(""), Ok(())); + assert!(const_hex::check_raw("")); + assert_eq!(const_hex::check(ALL_LOWER), Ok(())); assert_eq!(const_hex::check(ALL_UPPER), Ok(())); assert!(const_hex::check_raw(ALL_LOWER));