0;
}
how can I write unit test for this function?
I have problem to test the puts part.
You can use redirection of standard output to a file, then read the file and compare the output with expected output.
You can't test that
Обсуждают сегодня