diff --git a/tests/maddy/test_maddy_italicparser.cpp b/tests/maddy/test_maddy_italicparser.cpp new file mode 100644 index 0000000..c87f266 --- /dev/null +++ b/tests/maddy/test_maddy_italicparser.cpp @@ -0,0 +1,23 @@ +/* + * This project is licensed under the MIT license. For more information see the + * LICENSE file. + */ +#include + +#include "gmock/gmock.h" + +#include "maddy/italicparser.h" + +// ----------------------------------------------------------------------------- + +TEST(MADDY_ITALICPARSER, ItReplacesMarkdownWithItalicHTML) +{ + + std::string text = "some text *bla* text testing *it* out"; + std::string expected = "some text bla text testing it out"; + auto italicParser = std::make_shared(); + + italicParser->Parse(text); + + ASSERT_EQ(text, expected); +}