Parser (unit tests)

- Because this causes `expect(string)` to be called (this unit test) we must catch `TError` as that is what `expect(string)` throws
- We should update this (see https://deavmi.assigned.network/git/tlang/tlang/issues/147)
This commit is contained in:
Tristan B. Velloza Kildaire 2023-07-16 19:49:13 +02:00
parent a1443c4c48
commit 352eada94a
1 changed files with 2 additions and 6 deletions

View File

@ -3130,13 +3130,9 @@ int wrongFunction()
assert(false);
}
catch(ParserException e)
{
// TODO: Try make errors specific enough to yank them out
assert(true);
}
// TODO: Make more specific (see https://deavmi.assigned.network/git/tlang/tlang/issues/147)
catch(TError)
{
assert(false);
assert(true);
}
}