Add test fixture.
This commit is contained in:
parent
af6fad72eb
commit
d6d4319e21
37 changed files with 421 additions and 279 deletions
|
@ -2,7 +2,9 @@
|
|||
#include "File.h"
|
||||
#include "HtmlWriter.h"
|
||||
|
||||
int main()
|
||||
#include "TestFramework.h"
|
||||
|
||||
TEST_CASE(TestMarkdownParser, "web")
|
||||
{
|
||||
File md_file("/home/jmsgrogan/code/MediaTool/test/data/sample_markdown.md");
|
||||
md_file.Open();
|
||||
|
@ -20,6 +22,4 @@ int main()
|
|||
html_file.SetAccessMode(File::AccessMode::Write);
|
||||
html_file.Open();
|
||||
html_file.WriteText(html_string);
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
#include "XmlWriter.h"
|
||||
#include "File.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
#include "TestFramework.h"
|
||||
|
||||
TEST_CASE(TestXmlParser, "web")
|
||||
{
|
||||
XmlParser parser;
|
||||
|
||||
|
@ -26,6 +28,4 @@ int main(int argc, char *argv[])
|
|||
XmlWriter writer;
|
||||
auto content = writer.ToString(parser.GetDocument().get());
|
||||
outFile->WriteText(content);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue