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

Function UNIT_TEST

generator/generator_tests/addresses_tests.cpp:5–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "generator/addresses_collector.hpp"
4
5UNIT_TEST(GenerateAddresses_AddressInfo_FormatRange)
6{
7 generator::AddressesHolder::AddressInfo info;
8
9 info.m_house = "3000";
10 info.m_house2 = "3100";
11 TEST_EQUAL(info.FormatRange(), "3000:3100", ());
12
13 info.m_house = "72B";
14 info.m_house2 = "14 стр 1";
15 TEST_EQUAL(info.FormatRange(), "14:72", ());
16
17 info.m_house = "foo";
18 info.m_house2 = "bar";
19 TEST_EQUAL(info.FormatRange(), "", ());
20}

Callers

nothing calls this directly

Calls 1

FormatRangeMethod · 0.80

Tested by

no test coverage detected