| 3 | #include "generator/addresses_collector.hpp" |
| 4 | |
| 5 | UNIT_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 | } |
nothing calls this directly
no test coverage detected