gtest

Correct spelling of unit tests and the name of the testing function

The task is to test the structure with a single method toStr that returns the type as a string. This structure looks like thi ... Test(&argc, argv); return RUN_ALL_TESTS(); } P.S Don't judge this structure too harshly. It is given as an example.

Why doesn't CMake find GTest (Google Test)?

There is a ready-made project. In one of the cmake files, this construction works out: find_package(GTest REQUIRED) if (NOT ... dev cd /usr/src/gtest sudo cmake CMakeLists.txt sudo make sudo cp *.a /usr/lib Now I write GTEST_ROOT: GTEST_ROOT=/usr/lib