Open Majkl578 opened 5 years ago
@Majkl578 i might take a look at this bug, but please make it easy for me and provide runnable test code
I'll see what can be done, but Hoa's proprietary test suite makes things hard for contributors.
@Majkl578 what do you mean? proprietary is usually used to refer to license. In this case it's not proprietary but BSD license.
As for test framework it's based on http://atoum.org/ instead of phpunit as far as i know. I used atoum once it was pretty good.
You can just provide a snippet of code that shows your error, don't need a test case at the moment.
It would be good to fix this bug together with https://github.com/hoaproject/Compiler/issues/78 at the same time.
By proprietary I meant it's an in-house suite (hoa/test), not a standard tool like PHPUnit. So a contributor must first spend time investigating how this tool works and how the tests look like. It's an entry barrier.
Also, proprietary doesn't only mean properietary license, in this sense it should be understood as non-standard (see Wiktionary, adj. 4).
@Majkl578 you are right PHPUnit is not Atoum. PHPUnit is the most used test framework for PHP, but a standard? Anyway we can worry about unit test later, i can do it if necessary, it's not that difficult
When using multiline input, the arrow indicating position of invalid token is not positioned correctly:
When error is the
(
(i.e. missing pair)
), the exception message currently contains:What would be expceted instead:
or: