add some more checks in main file for correctness

This commit is contained in:
Maximilian Keßler 2022-04-16 13:21:31 +02:00
parent 647d1da843
commit 08cfa2ff8d

View file

@ -33,6 +33,15 @@ int main() {
add_rect(2,2,7,3); add_rect(2,2,7,3);
check_area(52); check_area(52);
add_rect(-1,2,5,7);
check_area(68);
add_rect(-1,0,8,4);
check_area(70);
add_rect(3,3,7,5);
check_area(71);
std::cout << "All checks passed" << std::endl; std::cout << "All checks passed" << std::endl;
return 0; return 0;
} }