Resolver (unittests)

- Added more unittests to cover last set of erroneous cases
This commit is contained in:
Tristan B. Velloza Kildaire 2024-05-12 16:08:01 +02:00
parent aaaea9bc4e
commit 797a4b0902
1 changed files with 17 additions and 0 deletions

View File

@ -1327,6 +1327,23 @@ int g;
assert(false);
}
catch(ResolutionError e) {}
// Try to find something within the module which doesn't exist
try
{
tc.getResolver().resolveWithin_Safe(modulle, "a", Variable.classinfo);
assert(false);
}
catch(ResolutionError e) {}
// Try to find something starting at the module-level which doesn't
// exist
try
{
tc.getResolver().resolveBest_Safe(modulle, "a", Variable.classinfo);
assert(false);
}
catch(ResolutionError e) {}
}
catch(TError e)
{