1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 11:47:46 +00:00

Check more fields in read_empty_planlive test

This commit is contained in:
Joshua Goins 2025-04-13 15:39:53 -04:00
parent 6392f97fe7
commit 0e68cf366f

View file

@ -804,7 +804,14 @@ mod tests {
d.push("empty_planlive.lgb"); d.push("empty_planlive.lgb");
let lgb = LayerGroup::from_existing(&read(d).unwrap()).unwrap(); let lgb = LayerGroup::from_existing(&read(d).unwrap()).unwrap();
assert_eq!(lgb.file_id, LGB1_ID);
assert_eq!(lgb.chunks.len(), 1); assert_eq!(lgb.chunks.len(), 1);
let chunk = &lgb.chunks[0];
assert_eq!(chunk.chunk_id, LGP1_ID);
assert_eq!(chunk.layer_group_id, 261);
assert_eq!(chunk.name, "PlanLive".to_string());
assert!(chunk.layers.is_empty());
} }
#[test] #[test]