diff --git a/lib/src/test/mod.rs b/lib/src/test/mod.rs index 813ff2c..f51dc39 100644 --- a/lib/src/test/mod.rs +++ b/lib/src/test/mod.rs @@ -47,12 +47,12 @@ fn test_scope_lookup() { let app_ctx = mgr.write().get_context(app_id).unwrap(); let global = StLexerBuilder::new().build_str("VAR_GLOBAL END_VAR VAR_GLOBAL g1: REAL; END_VAR"); let global = StDeclarationParser::new().parse(global).unwrap(); - let _global_id = app_ctx.write().add_declaration(global); + let _global_id = app_ctx.write().add_declaration(global, Uuid::nil()); let test_func = StLexerBuilder::new().build_str("program prg: int VAR g1: BYTE; END_VAR end_program"); let test_fun_decl = StDeclarationParser::new().parse(test_func).unwrap(); - let test_fun_decl_id = app_ctx.write().add_declaration(test_fun_decl); + let test_fun_decl_id = app_ctx.write().add_declaration(test_fun_decl, Uuid::nil()); let scope = Scope::new(Some(mgr.clone()), Some(app_id), Some(test_fun_decl_id)); let variable = scope.find_variable(&StString::new("g1"));