add unused-row assertion

This commit is contained in:
saji 2024-05-05 01:46:01 -05:00
parent d3c498231e
commit e5a1f84bf8

View file

@ -96,6 +96,7 @@ fn map_remaining_olmc(
Ok(x) Ok(x)
} }
None => { None => {
assert!(!unused.is_empty(), "should have rows available");
let minsize = unused.iter().map(|x| x.1).min().unwrap(); let minsize = unused.iter().map(|x| x.1).min().unwrap();
Err(MappingError::SopTooBig { Err(MappingError::SopTooBig {
name: sop.name.unwrap(), name: sop.name.unwrap(),