aboutsummaryrefslogtreecommitdiff
path: root/tests/test_parse_simple_string.rs
diff options
context:
space:
mode:
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!(