feladat6 v1 (no test)

This commit is contained in:
Damimani 2026-11-15 14:31:05 +01:00
parent 6ca06962d9
commit 49d964d8f1
7 changed files with 291 additions and 19 deletions

View file

@ -1,4 +1,4 @@
// Tóth Dániel Mátyás | IFPQYY | v3
// Tóth Dániel Mátyás | IFPQYY | v1
#include "pch.h"
#include "CppUnitTest.h"
#include <CMyString.h>
@ -385,6 +385,7 @@ namespace UnitTest1
CMyString('a', 10),
CMyString("alma"),
CMyString("test"),
CMyString("alma"),
};
int pos[] = {
0,
@ -395,6 +396,7 @@ namespace UnitTest1
3,
4,
0,
1,
};
int cnt[] = {
1,
@ -405,6 +407,7 @@ namespace UnitTest1
1,
100,
0,
-1,
};
char* text[] = {
"",
@ -415,6 +418,7 @@ namespace UnitTest1
"aaaaaaaaa",
"alma",
"test",
"a"
};
int testcount = sizeof(pos) / sizeof(int);
for (size_t i = 0; i < testcount; i++)