Examples: Enhancing the Quality of the Code with the Help of Unit Test

 

New article Enhancing the Quality of the Code with the Help of Unit Test has been published:

Even simple programs may often have errors that seem to be unbelievable. "How could I create that?" is our first thought when such an error is revealed. "How can I avoid that?" is the second question which comes to our mind less frequently. It is impossible to create absolutely faultless code, especially in big projects, but it is possible to use technologies for their timely detection. The article describes how the MQL4 code quality can be enhanced with the help of the popular Unit Testing method.

Author: Андрей

 

Thank for this article.

That's very useful but I get some errors

'actual' - invalid array access mql4unit.mq4 58 71

'expected' - invalid array access mql4unit.mq4 58 95

'actual' - invalid array access mql4unit.mq4 84 83

'expected' - invalid array access mql4unit.mq4 84 131

It will be nice if you could fix that (or say me how).

I think I should convert these arrays to string.

I also don't understand why putting mql4unit into Library and not into Include directory.

 

Hello,

 

You can find mt4-unittest project 

https://github.com/femtotrader/mt4-unittest 

 

(forked from https://github.com/micclly/mt4-unittest )

 

Kind regards 

Reason: