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:
parent
a1443c4c48
commit
352eada94a
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue