From f2cf3f5db448980a85d570a2348a8a7bffcf6cf9 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Fri, 21 Jul 2023 11:40:03 +0800 Subject: [PATCH] added strchr_test.cpp --- CMakeLists.txt | 3 +++ datatype/strchr_test.cpp | 43 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 datatype/strchr_test.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c9bbeb..8498ca1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,9 @@ cm_example_project("DataType" CollectionTest) add_executable(SplitStringTest datatype/SplitStringTest.cpp) cm_example_project("DataType" SplitStringTest) +add_executable(StrChrTest datatype/strchr_test.cpp) +cm_example_project("DataType" StrChrTest) + add_executable(MultiMapTest datatype/MultiMapTest.cpp) cm_example_project("DataType" MultiMapTest) diff --git a/datatype/strchr_test.cpp b/datatype/strchr_test.cpp new file mode 100644 index 0000000..f26a605 --- /dev/null +++ b/datatype/strchr_test.cpp @@ -0,0 +1,43 @@ +#include +#include +#include + +void out(const char *source,const char *result) +{ + std::cout<