From b5afc4a3e031291ea4af54bf700b57d33d305d90 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 2 Apr 2023 18:29:13 +0100 Subject: [PATCH] Fix serialization size checking tests --- lib/src/sql/value/value.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/src/sql/value/value.rs b/lib/src/sql/value/value.rs index dfc44387..1af4d7cb 100644 --- a/lib/src/sql/value/value.rs +++ b/lib/src/sql/value/value.rs @@ -1864,13 +1864,13 @@ mod tests { #[test] fn check_serialize() { - assert_eq!(1, Value::None.to_vec().len()); - assert_eq!(1, Value::Null.to_vec().len()); - assert_eq!(1, Value::True.to_vec().len()); - assert_eq!(1, Value::False.to_vec().len()); - assert_eq!(7, Value::from("test").to_vec().len()); - assert_eq!(17, Value::parse("{ hello: 'world' }").to_vec().len()); - assert_eq!(24, Value::parse("{ compact: true, schema: 0 }").to_vec().len()); + assert_eq!(5, Value::None.to_vec().len()); + assert_eq!(5, Value::Null.to_vec().len()); + assert_eq!(5, Value::True.to_vec().len()); + assert_eq!(6, Value::False.to_vec().len()); + assert_eq!(13, Value::from("test").to_vec().len()); + assert_eq!(29, Value::parse("{ hello: 'world' }").to_vec().len()); + assert_eq!(43, Value::parse("{ compact: true, schema: 0 }").to_vec().len()); } #[test]