From 2e501df2972cb5a24e18ff5686f4cb6f00b44412 Mon Sep 17 00:00:00 2001 From: Tpt Date: Thu, 27 Sep 2018 11:07:31 +0200 Subject: [PATCH] Adds a test to warn if the EncodedTerm size changes --- src/store/numeric_encoder.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/store/numeric_encoder.rs b/src/store/numeric_encoder.rs index 35a397b6..464cc896 100644 --- a/src/store/numeric_encoder.rs +++ b/src/store/numeric_encoder.rs @@ -410,4 +410,11 @@ mod test { } } + #[test] + fn test_encoded_term_size() { + use std::mem::size_of; + + assert_eq!(size_of::(), 24); + } + }