Random testing: Difference between revisions

Content deleted Content added
Deleted my testing thing
Tags: Mobile edit Mobile web edit
Overview: Copyedited one sentence using AWB
Line 34:
</syntaxhighlight>
 
The reference implementation is sometimes available, e.g. when implementing a simple algorithm in a much more complex way for better performance. For example, to test an implementation of the [[Schönhage–Strassen algorithm]] algorithm, the standard "*" operation on integers can be used:
<syntaxhighlight lang="cpp">
int getRandomInput() {