|
|
Flowgorithm CLI supports kind of unit testing. The concept similar to ordinary testing framework. You have a file with your code and a second file with unit tests.
|
|
|
|
|
|
In your testing function you prepare the conditions for test, call the tested method and assert the results. The assertion is done via set of methods:
|
|
|
```
|
|
|
```Pascal
|
|
|
AssertAreEqualInts(Integer expected, Integer actual, String message)
|
|
|
AssertAreEqualReals(Real expected, Real actual, String message)
|
|
|
AssertAreEqualBools(Boolean expected, Boolean actual, String message)
|
... | ... | |