\hypertarget{stringops_8cpp_source}{}\doxysection{stringops.\+cpp}
\label{stringops_8cpp_source}\index{tests/stringops.cpp@{tests/stringops.cpp}}
\mbox{\hyperlink{stringops_8cpp}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00001}00001 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{stringops_8h}{kblib/stringops.h}}"{}}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00002}00002 \textcolor{preprocessor}{\#include "{}catch.hpp"{}}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00003}00003 }
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00004}00004 \textcolor{keyword}{using namespace }std::literals;}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00005}00005 }
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00006}00006 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX17}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00007}\mbox{\hyperlink{stringops_8cpp_ab4bdce6fe8b38b49fac7e7bf5e566f1c}{00007}} \mbox{\hyperlink{stringops_8cpp_ab4bdce6fe8b38b49fac7e7bf5e566f1c}{TEST\_CASE}}(\textcolor{stringliteral}{"{}concat"{}}) \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00008}00008    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}) == \textcolor{stringliteral}{"{}a"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00009}00009    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(1) == \textcolor{stringliteral}{"{}1"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00010}00010    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(1, \textcolor{stringliteral}{"{}a"{}}) == \textcolor{stringliteral}{"{}1a"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00011}00011    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}sv) == \textcolor{stringliteral}{"{}a"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00012}00012    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(1, \textcolor{stringliteral}{"{}a"{}}sv) == \textcolor{stringliteral}{"{}1a"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00013}00013    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(1, 2, 3, 4) == \textcolor{stringliteral}{"{}1234"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00014}00014    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{charliteral}{'a'}, \textcolor{charliteral}{'b'}, \textcolor{charliteral}{'c'}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00015}00015    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}, \textcolor{charliteral}{'b'}, \textcolor{charliteral}{'c'}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00016}00016    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{charliteral}{'a'}, \textcolor{stringliteral}{"{}b"{}}, \textcolor{charliteral}{'c'}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00017}00017    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}, \textcolor{stringliteral}{"{}b"{}}, \textcolor{stringliteral}{"{}c"{}}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00018}00018    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}sv, \textcolor{charliteral}{'b'}, \textcolor{charliteral}{'c'}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00019}00019    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}, \textcolor{stringliteral}{"{}b"{}}sv, \textcolor{charliteral}{'c'}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00020}00020    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}sv, \textcolor{stringliteral}{"{}b"{}}, \textcolor{charliteral}{'c'}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00021}00021    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}, \textcolor{stringliteral}{"{}b"{}}sv, \textcolor{stringliteral}{"{}c"{}}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00022}00022    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}sv, \textcolor{stringliteral}{"{}b"{}}sv, \textcolor{charliteral}{'c'}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00023}00023    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}a"{}}sv, \textcolor{stringliteral}{"{}b"{}}sv, \textcolor{stringliteral}{"{}c"{}}) == \textcolor{stringliteral}{"{}abc"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00024}00024    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}ab"{}}, \textcolor{stringliteral}{"{}cd"{}}, 12, 3, 4) == \textcolor{stringliteral}{"{}abcd1234"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00025}00025    \textcolor{keyword}{static\_assert}(std::is\_same\_v<std::string, kblib::detail::str\_type\_t<double>>,}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00026}00026                  \textcolor{stringliteral}{"{}arithmetic types are converted to std::string"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00027}00027    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(1.0) == \textcolor{stringliteral}{"{}1.000000"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00028}00028    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(1.5) == \textcolor{stringliteral}{"{}1.500000"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00029}00029    REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(0.0) == \textcolor{stringliteral}{"{}0.000000"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00030}00030    \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00031}00031       std::string val = \textcolor{stringliteral}{"{}1"{}};}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00032}00032       \textcolor{keyword}{const} \textcolor{keywordtype}{char}* type = \textcolor{stringliteral}{"{}bool"{}};}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00033}00033       REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}\(\backslash\)"{}"{}}, val, \textcolor{stringliteral}{"{}\(\backslash\)"{} is not a "{}}, type)}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00034}00034               == \textcolor{stringliteral}{"{}\(\backslash\)"{}1\(\backslash\)"{} is not a bool"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00035}00035    \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00036}00036    \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00037}00037       std::string\_view val = \textcolor{stringliteral}{"{}1"{}};}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00038}00038       \textcolor{keyword}{const} \textcolor{keywordtype}{char}* type = \textcolor{stringliteral}{"{}bool"{}};}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00039}00039       REQUIRE(\mbox{\hyperlink{namespacekblib_a56615de712caf1b43a541f5387a4b847}{kblib::concat}}(\textcolor{stringliteral}{"{}\(\backslash\)"{}"{}}, val, \textcolor{stringliteral}{"{}\(\backslash\)"{} is not a "{}}, type)}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00040}00040               == \textcolor{stringliteral}{"{}\(\backslash\)"{}1\(\backslash\)"{} is not a bool"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00041}00041    \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00042}00042 \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00044}\mbox{\hyperlink{stringops_8cpp_ab5fe3a99689560959a751534eb32e54b}{00044}} \mbox{\hyperlink{stringops_8cpp_ab4bdce6fe8b38b49fac7e7bf5e566f1c}{TEST\_CASE}}(\textcolor{stringliteral}{"{}join and split"{}}) \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00045}00045    std::vector<std::string> vec\{\textcolor{stringliteral}{"{}Hello"{}}, \textcolor{stringliteral}{"{}world!"{}}, \textcolor{stringliteral}{"{}How"{}}, \textcolor{stringliteral}{"{}do"{}}, \textcolor{stringliteral}{"{}you"{}}, \textcolor{stringliteral}{"{}do?"{}}\};}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00046}00046    \textcolor{keyword}{auto} joined = \mbox{\hyperlink{namespacekblib_a6127fe0b8fdc5d0374a81eddf28749df}{kblib::join}}(vec, \textcolor{stringliteral}{"{} "{}}s);}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00047}00047    REQUIRE(joined == \textcolor{stringliteral}{"{}Hello world! How do you do?"{}});}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00048}00048    \textcolor{keyword}{auto} split = \mbox{\hyperlink{namespacekblib_a05a551b96ff921bdd62cd2fc0110c54d}{kblib::split\_tokens}}(joined);}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00049}00049    REQUIRE(split == vec);}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00050}00050 \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00051}00051 }
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00052}\mbox{\hyperlink{stringops_8cpp_afad9496706802de6bcf16a28379e2c59}{00052}} \mbox{\hyperlink{stringops_8cpp_ab4bdce6fe8b38b49fac7e7bf5e566f1c}{TEST\_CASE}}(\textcolor{stringliteral}{"{}split"{}}) \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00053}00053    std::vector<std::tuple<std::string, std::vector<std::string>>> tests\{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00054}00054        \{\textcolor{stringliteral}{"{}"{}}, \{\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00055}00055        \{\textcolor{stringliteral}{"{}test"{}}, \{\textcolor{stringliteral}{"{}test"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00056}00056        \{\textcolor{stringliteral}{"{} "{}}, \{\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00057}00057        \{\textcolor{stringliteral}{"{}abc def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00058}00058        \{\textcolor{stringliteral}{"{} abc"{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00059}00059        \{\textcolor{stringliteral}{"{}abc "{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00060}00060        \{\textcolor{stringliteral}{"{} abc "{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00061}00061        \{\textcolor{stringliteral}{"{}abc  def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00062}00062        \{\textcolor{stringliteral}{"{}abc def "{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00063}00063        \{\textcolor{stringliteral}{"{}\(\backslash\)fabc"{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00064}00064        \{\textcolor{stringliteral}{"{}abc\(\backslash\)n"{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00065}00065        \{\textcolor{stringliteral}{"{}\(\backslash\)tabc\(\backslash\)v"{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00066}00066        \{\textcolor{stringliteral}{"{}abc\(\backslash\)t\(\backslash\)tdef"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00067}00067        \{\textcolor{stringliteral}{"{}abc\(\backslash\)tdef\(\backslash\)t"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00068}00068        \{\textcolor{stringliteral}{"{} \(\backslash\)tabc"{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00069}00069        \{\textcolor{stringliteral}{"{}abc \(\backslash\)f"{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00070}00070        \{\textcolor{stringliteral}{"{}\(\backslash\)v abc\(\backslash\)t "{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00071}00071        \{\textcolor{stringliteral}{"{}abc \(\backslash\)t def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00072}00072        \{\textcolor{stringliteral}{"{}abc\(\backslash\)n def "{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00073}00073        \{\textcolor{stringliteral}{"{} abc def "{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00074}00074        \{\textcolor{stringliteral}{"{} abc def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00075}00075        \{\textcolor{stringliteral}{"{}  abc    def  "{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00076}00076        \{\textcolor{stringliteral}{"{} abc def ghi"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}, \textcolor{stringliteral}{"{}ghi"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00077}00077    \};}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00078}00078    \textcolor{keywordflow}{for} (\textcolor{keyword}{const} \textcolor{keyword}{auto}\& [\mbox{\hyperlink{main_8cpp_a87feefefd3868afd53b1f40314e0dce0}{test}}, result] : tests) \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00079}00079       REQUIRE(\mbox{\hyperlink{namespacekblib_a05a551b96ff921bdd62cd2fc0110c54d}{kblib::split\_tokens}}(\mbox{\hyperlink{main_8cpp_a87feefefd3868afd53b1f40314e0dce0}{test}}) == result);}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00080}00080    \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00081}00081 \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00082}\mbox{\hyperlink{stringops_8cpp_aba553dc8df4a535e011e1e35bb77e9cd}{00082}} \mbox{\hyperlink{stringops_8cpp_ab4bdce6fe8b38b49fac7e7bf5e566f1c}{TEST\_CASE}}(\textcolor{stringliteral}{"{}split2"{}}) \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00083}00083    std::vector<std::pair<std::string, std::vector<std::string>>> tests\{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00084}00084        \{\textcolor{stringliteral}{"{}"{}}, \{\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00085}00085        \{\textcolor{stringliteral}{"{}test"{}}, \{\textcolor{stringliteral}{"{}test"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00086}00086        \{\textcolor{stringliteral}{"{} "{}}, \{\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00087}00087        \{\textcolor{stringliteral}{"{}abc def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00088}00088        \{\textcolor{stringliteral}{"{} abc"{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00089}00089        \{\textcolor{stringliteral}{"{}abc "{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00090}00090        \{\textcolor{stringliteral}{"{} abc "{}}, \{\textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00091}00091        \{\textcolor{stringliteral}{"{}abc  def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00092}00092        \{\textcolor{stringliteral}{"{}abc def "{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00093}00093        \{\textcolor{stringliteral}{"{} abc  def "{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00094}00094        \{\textcolor{stringliteral}{"{} abc def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00095}00095        \{\textcolor{stringliteral}{"{}  abc    def  "{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00096}00096        \{\textcolor{stringliteral}{"{} abc def ghi"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}, \textcolor{stringliteral}{"{}ghi"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00097}00097    \};}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00098}00098    \textcolor{keywordflow}{for} (\textcolor{keyword}{const} \textcolor{keyword}{auto}\& [\mbox{\hyperlink{main_8cpp_a87feefefd3868afd53b1f40314e0dce0}{test}}, result] : tests) \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00099}00099       REQUIRE(\mbox{\hyperlink{namespacekblib_a47a95399524c0bca50361169128f9db9}{kblib::kbsplit2}}(\mbox{\hyperlink{main_8cpp_a87feefefd3868afd53b1f40314e0dce0}{test}}) == result);}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00100}00100    \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00101}00101 \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00102}00102 }
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00103}\mbox{\hyperlink{stringops_8cpp_a735e90e20a8b5c3cd8e5b223b74c5e31}{00103}} \mbox{\hyperlink{stringops_8cpp_ab4bdce6fe8b38b49fac7e7bf5e566f1c}{TEST\_CASE}}(\textcolor{stringliteral}{"{}split\_dsv"{}}) \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00104}00104    std::vector<std::pair<std::string, std::vector<std::string>>> tests\{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00105}00105        \{\textcolor{stringliteral}{"{}"{}}, \{\textcolor{stringliteral}{"{}"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00106}00106        \{\textcolor{stringliteral}{"{}test"{}}, \{\textcolor{stringliteral}{"{}test"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00107}00107        \{\textcolor{stringliteral}{"{},"{}}, \{\textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00108}00108        \{\textcolor{stringliteral}{"{}abc,def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00109}00109        \{\textcolor{stringliteral}{"{},abc"{}}, \{\textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}abc"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00110}00110        \{\textcolor{stringliteral}{"{}abc,"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00111}00111        \{\textcolor{stringliteral}{"{},abc,"{}}, \{\textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00112}00112        \{\textcolor{stringliteral}{"{}abc,,def"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00113}00113        \{\textcolor{stringliteral}{"{}abc,def,"{}}, \{\textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}, \textcolor{stringliteral}{"{}"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00114}00114        \{\textcolor{stringliteral}{"{},abc,,def,"{}}, \{\textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}def"{}}, \textcolor{stringliteral}{"{}"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00115}00115        \{\textcolor{stringliteral}{"{},abc,def"{}}, \{\textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00116}00116        \{\textcolor{stringliteral}{"{},,abc,,,,def,,"{}}, \{\textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}def"{}}, \textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00117}00117        \{\textcolor{stringliteral}{"{},abc,def,ghi"{}}, \{\textcolor{stringliteral}{"{}"{}}, \textcolor{stringliteral}{"{}abc"{}}, \textcolor{stringliteral}{"{}def"{}}, \textcolor{stringliteral}{"{}ghi"{}}\}\},}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00118}00118    \};}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00119}00119    \textcolor{keywordflow}{for} (\textcolor{keyword}{const} \textcolor{keyword}{auto}\& [\mbox{\hyperlink{main_8cpp_a87feefefd3868afd53b1f40314e0dce0}{test}}, result] : tests) \{}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00120}00120       REQUIRE(\mbox{\hyperlink{namespacekblib_aae5eb815715bae10bdcc0ea9475cfb7c}{kblib::split\_dsv}}(\mbox{\hyperlink{main_8cpp_a87feefefd3868afd53b1f40314e0dce0}{test}}, \textcolor{charliteral}{','}) == result);}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00121}00121    \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00122}00122 \}}
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00123}00123 }
\DoxyCodeLine{\Hypertarget{stringops_8cpp_source_l00124}00124 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
