cptr_replace

This commit is contained in:
2023-05-27 22:39:50 +06:00
parent 176cdb2d62
commit aba67710c7
3 changed files with 21 additions and 20 deletions

View File

@@ -1,14 +1,5 @@
#include "tests.h"
/*
TODO
test cptr_seek...
test cptr_...indexOf...
test cptr_replace...
cases:
*/
const char* strings[]={
"",
"abab",
@@ -70,7 +61,7 @@ const char* strings[]={
const int strings_len=sizeof(strings)/sizeof(strings[0]);
void test_cptr(){
// optime(__func__,1,
optime(__func__,1,
kprintf("\e[96m-------------[test_cptr]--------------\n");
// compare
kprintf("\e[94m--------------[compare]---------------\n");
@@ -157,5 +148,7 @@ void test_cptr(){
test_seekReverse("ab", "", 2, 2, -1)
test_seekReverse("ab", "b", 1, 2, 1)
test_seekReverse("ab", "b", 1, 1, 1)
// );
// TODO cptr_replace
);
}