3 ms·
Do you mean you work with evolutionary algorithms? One thing testing does require is determinism. In other words, given all input states X(1) through X(N), out
by pmarreck 11y ago
Do you mean you work with evolutionary algorithms?
One thing testing does require is determinism. In other words, given all input states X(1) through X(N), output Z should result 100% of the time. If that is not the case, then you haven't accounted for all input states (for example, code that looks at the time and acts based on that- the time is an oft-unaccounted-for input) or you have code that calls something like rand() without a seed.
If you can get your code into a deterministic state, then it is testable.