/* * This project is licensed under the MIT license. For more information see the * LICENSE file. */ #include #include "gmock/gmock.h" #include "maddy/strongparser.h" // ----------------------------------------------------------------------------- TEST(MADDY_STRONGPARSER, ItReplacesMarkdownWithStrongHTML) { std::string text = "some text **bla** text testing **it** out"; std::string expected = "some text bla text testing it out"; auto strongParser = std::make_shared(); strongParser->Parse(text); ASSERT_EQ(expected, text); } TEST(MADDY_STRONGPARSER, ItReplacesEmphasizedMarkdownNotWithStrongHTML) { std::string text = "some text *bla* text testing **it** out"; std::string expected = "some text *bla* text testing it out"; auto strongParser = std::make_shared(); strongParser->Parse(text); ASSERT_EQ(expected, text); }