aboutsummaryrefslogtreecommitdiff
path: root/tests/test_parse_simple_string.rs
diff options
context:
space:
mode:
authoromagdy <omar.professional8777@gmail.com>2025-07-24 06:04:32 +0300
committeromagdy <omar.professional8777@gmail.com>2025-07-24 06:04:32 +0300
commit30e6b478d7cd286b68da21d7a5aa5426c588cd02 (patch)
tree719096c1bd3975e192bc5d6608f9f27f98e10e16 /tests/test_parse_simple_string.rs
parent561fb8d783cc000b7b9cc204e10618464c092e18 (diff)
downloadredis-rust-30e6b478d7cd286b68da21d7a5aa5426c588cd02.tar.xz
redis-rust-30e6b478d7cd286b68da21d7a5aa5426c588cd02.zip
refactor: Refactor how I model the state and config and cache of the server with sepraration of concerns
Diffstat (limited to 'tests/test_parse_simple_string.rs')
-rw-r--r--tests/test_parse_simple_string.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_parse_simple_string.rs b/tests/test_parse_simple_string.rs
index 2e9ed11..d2e30ab 100644
--- a/tests/test_parse_simple_string.rs
+++ b/tests/test_parse_simple_string.rs
@@ -37,6 +37,15 @@ fn test_valid_simple_strings() {
}
#[test]
+fn test_full_resync_string() {
+ let input = b"+FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0\r\n".to_vec();
+ assert_eq!(
+ parse(&input).unwrap().0,
+ "FULLRESYNC 75cd7bc10c49047e0d163660f3b90625b1af31dc 0"
+ )
+}
+
+#[test]
fn test_invalid_prefix() {
// Missing '+' prefix
assert_eq!(