From 0e68cf366f1bd5b58ed740a6f2e597c9a8b091aa Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 13 Apr 2025 15:39:53 -0400 Subject: [PATCH] Check more fields in read_empty_planlive test --- src/layer/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/layer/mod.rs b/src/layer/mod.rs index b23d7af..31211d5 100644 --- a/src/layer/mod.rs +++ b/src/layer/mod.rs @@ -804,7 +804,14 @@ mod tests { d.push("empty_planlive.lgb"); let lgb = LayerGroup::from_existing(&read(d).unwrap()).unwrap(); + assert_eq!(lgb.file_id, LGB1_ID); 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]