nac3core: fix test assertion

This commit is contained in:
z78078 2022-07-21 09:56:58 +08:00
parent 6eb433b2e3
commit 2ec449545e
1 changed files with 3 additions and 2 deletions

View File

@ -706,8 +706,9 @@ fn test_build_constructor_lookup(source: &str, result: HashMap<ast::StrRef, ast:
composer.build_constructor_lookup(stmts.iter())
}
assert_eq!(result.get(&"A".into()).unwrap(), result.get(&"B".into()).unwrap());
assert_eq!(result.get(&"B".into()).unwrap(), result.get(&"C".into()).unwrap());
assert_eq!(result.get(&"A".into()).unwrap(), composer.constructor_lookup.get(&"A".into()).unwrap());
assert_eq!(result.get(&"B".into()).unwrap(), composer.constructor_lookup.get(&"B".into()).unwrap());
assert_eq!(result.get(&"C".into()).unwrap(), composer.constructor_lookup.get(&"C".into()).unwrap());
}