Add more passing tests for vec hash caching

This commit is contained in:
Paul Hauner
2019-04-11 17:40:11 +10:00
parent 0bdd61e564
commit 55ee8e20ae
2 changed files with 59 additions and 16 deletions

View File

@@ -109,8 +109,8 @@ where
) -> Result<usize, Error> {
let offset_handler = OffsetHandler::new(self, chunk)?;
if self.len() != other.len() {
panic!("variable sized lists not implemented");
if self.len().next_power_of_two() != other.len().next_power_of_two() {
panic!("not implemented: vary between power-of-two boundary");
}
match T::item_type() {