Sometimes I'm just not clear about how some function or syntax works in C++. So I use small test files to verify them.