Example code - Unit test: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

27 January 2026

  • curprev 09:4109:41, 27 January 2026WikiSysop talk contribs 6,449 bytes +6,449 Created page with "I decided to make some unit tests for my prime number generator, I used as an example last week, see Example code - Classes I make two files - one file containing the class ''PrimeGenerator.py'' and one file containing the tests, ''test_PrimeGenerator.py''. The files are supposed to be in the same folder. I will not show the code from last week in ''PrimeGenerator.py'', if you want to see the code, click the above link. <p> This is my unit test file. I want to test..."