Skip to content

Commit

Permalink
rs: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielratiu committed Jul 28, 2024
1 parent 8d79a91 commit 20b8bc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mps-cli-rs/tests/model_completeness_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ pub (crate) fn check_model_completeness(repo : &SRepository, library_top_solutio
let library_top_model = repo.find_model_by_name((library_top_solution_name.to_owned() + ".library_top").as_str()).unwrap();
let library_top_model : Ref<SModel> = library_top_model.try_borrow().ok().unwrap();
assert_eq!(library_top_model.root_nodes.len(), 2);
let munich_library_root = library_top_model.root_nodes.first().unwrap();
assert_eq!(munich_library_root.get_property("name"), Some(String::from("munich_library")));
let munich_library_root = library_top_model.root_nodes.iter().find(|r| r.get_property("name") == Some(String::from("munich_library")));
assert!(munich_library_root.is_some());
let munich_library_root = munich_library_root.unwrap();
assert_eq!(SNode::get_descendants(Rc::clone(munich_library_root), true).len(), 8);
assert_eq!(munich_library_root.get_children("entities").len(), 4);

Expand Down

0 comments on commit 20b8bc6

Please sign in to comment.