The process of testing the logic of algorithm to ensure they give correct result is…