MCPcopy Create free account
hub / github.com/comaps/comaps / TestHoliday

Function TestHoliday

libs/routing/routing_tests/opening_hours_serdes_tests.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void TestHoliday(osmoh::RuleSequence const & rule, bool forSchool)
101{
102 TEST_EQUAL(rule.GetWeekdays().GetHolidays().size(), 1, ());
103 TEST_EQUAL(rule.GetWeekdays().GetHolidays().back().IsPlural(), !forSchool, ());
104}
105
106void TestModifier(osmoh::RuleSequence const & rule, osmoh::RuleSequence::Modifier modifier)
107{

Callers 1

UNIT_CLASS_TESTFunction · 0.85

Calls 3

IsPluralMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected