Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
392B

  1. #include <string>
  2. #include "Memory.h"
  3. std::string test_memory_generateConstPlayfield() {
  4. std::map<int, int> idGroups = memory_generateConstPlayfield(2);
  5. if (
  6. idGroups.size() == 4 &&
  7. idGroups[0] == 0 &&
  8. idGroups[1] == 0 &&
  9. idGroups[2] == 1 &&
  10. idGroups[3] == 1
  11. ) {
  12. return "OK: memory_generateConstPlayfield";
  13. }
  14. return "ERR: memory_generateConstPlayfield";
  15. }