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)
hotfix/expect_exception_change
Tristan B. V. Kildaire 11 months ago
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…
Cancel
Save