mirror of
https://github.com/quitesimpleorg/qsmaddy.git
synced 2025-12-18 12:11:45 +01:00
initial release 1.0.0
This commit is contained in:
21
tests/maddy/test_maddy_parser.cpp
Normal file
21
tests/maddy/test_maddy_parser.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* This project is licensed under the MIT license. For more information see the
|
||||
* LICENSE file.
|
||||
*/
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
#include "maddy/parser.h"
|
||||
#include "maddy/test_maddy_parser.h"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
TEST(MADDY_PARSER, ItShouldParse)
|
||||
{
|
||||
auto parser = std::make_shared<maddy::Parser>();
|
||||
std::stringstream markdown(testMarkdown);
|
||||
|
||||
const std::string output = parser->Parse(markdown);
|
||||
|
||||
ASSERT_EQ(testHtml, output);
|
||||
}
|
||||
Reference in New Issue
Block a user