Tests for File-Generators
- Test:
- Generator Fixture Tests
#include <gtest/gtest.h>
using namespace std::literals::string_literals;
std::vector<BibElement> element{
{
{
"FeigenspanSiFr11",
"article",
{
{"author", "{Janet Feigenspan and Norbert Siegmund and Jana Fruth}"},
{"title", "{{On the Role of Program Comprehension in Embedded Systems}}"},
{"journal", "{Softwaretechnik-Trends}"},
{"year", "{2011}"},
{"volume", "{31}"},
{"number", "{2}"},
{"month", "May"},
{"url",
"{http://www.uni-koblenz-landau.de/koblenz/fb4/institute/uebergreifend/sre/conferences/wsr/wsr2011/wsr2011_proceedings.pdf}"
}
}
}
}
};
};
std::unordered_set<std::string> expected{
"author",
"title",
"journal",
"year",
"volume",
"number",
"month",
"url"
};
}
ASSERT_NO_THROW(([&](){
ASSERT_NE(html, "");
}()));
}
ASSERT_NO_THROW(([&](){
ASSERT_NE(xml, "");
}()));
}
ASSERT_NO_THROW(([&](){
ASSERT_NE(plain, "");
}()));
}
ASSERT_ANY_THROW([]() {
}());
}