How to use FPCunit?
I already created the function for the test but I don't know how to display the test result.
A unit test program is a separate program from your actual program. If you use the project wizard, it will have a .lpr containing the unit test program. Just run it to see the unit test result. Use the GUI project if you want a dashboard style output rather than console.