From 9ed90b4537c7930103e0fd97364706940334c861 Mon Sep 17 00:00:00 2001 From: Anatoly Serdtcev Date: Thu, 31 Oct 2019 20:28:54 +0300 Subject: [PATCH] [generator:tests] Fix way test data: JOSM update format -> OSM format --- generator/generator_tests/source_data.cpp | 78 ++++++++++++----------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/generator/generator_tests/source_data.cpp b/generator/generator_tests/source_data.cpp index 3e46712..e55e841 100644 --- a/generator/generator_tests/source_data.cpp +++ b/generator/generator_tests/source_data.cpp @@ -43,49 +43,50 @@ unsigned char const node2_o5m_data[] = /* 93 */ static_assert(sizeof(node2_o5m_data) == 93, "Size check failed"); -char const way_xml_data[] = "\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -\ -"; +char const way_xml_data[] = R"#( + + + + + + + + + + + + + + + + + + + + + + + + +)#"; // binary data: way.o5m -unsigned char const way_o5m_data[] = /* 175 */ -{0xFF, 0xE0, 0x04, 0x6F, 0x35, 0x6D, 0x32, 0xFF, 0x10, 0x0E, 0xE9, 0xAB, 0x21, 0x00, 0xC5, 0x94, - 0x88, 0x88, 0x0A, 0x8C, 0xB1, 0x9D, 0xC3, 0x04, 0x10, 0x08, 0x04, 0x00, 0x9C, 0x8F, 0x0A, 0x87, - 0xE7, 0x05, 0x10, 0x07, 0x04, 0x00, 0xF6, 0x4A, 0xFD, 0x92, 0x03, 0x10, 0x08, 0x04, 0x00, 0xF6, - 0xA1, 0x04, 0xF5, 0x80, 0x04, 0x10, 0x08, 0x04, 0x00, 0xB4, 0xB6, 0x02, 0x89, 0xBB, 0x06, 0x10, - 0x08, 0x04, 0x00, 0xB4, 0xEC, 0x03, 0xD9, 0xCC, 0x03, 0x10, 0x08, 0x04, 0x00, 0xD6, 0xC0, 0x01, - 0xB7, 0x83, 0x03, 0x10, 0x08, 0x06, 0x00, 0xDB, 0xAB, 0x02, 0x9F, 0xFE, 0x02, 0x10, 0x08, 0x02, - 0x00, 0x87, 0xAD, 0x05, 0xEB, 0xA5, 0x04, 0xFF, 0x11, 0x44, 0xCD, 0xAB, 0x21, 0x00, 0x0B, 0xC9, - 0xAB, 0x21, 0x01, 0x05, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x00, 0x6E, 0x61, 0x6D, 0x65, 0x00, - 0x59, 0x75, 0x6B, 0x6F, 0x6E, 0x20, 0x52, 0x69, 0x76, 0x65, 0x72, 0x00, 0x00, 0x6E, 0x61, 0x6D, - 0x65, 0x3A, 0x72, 0x75, 0x00, 0xD0, 0xAE, 0xD0, 0xBA, 0xD0, 0xBE, 0xD0, 0xBD, 0x00, 0x00, 0x77, - 0x61, 0x74, 0x65, 0x72, 0x77, 0x61, 0x79, 0x00, 0x72, 0x69, 0x76, 0x65, 0x72, 0x00, 0xFE}; +unsigned char const way_o5m_data[/* 175 */] = { + 0xFF, 0xE0, 0x04, 0x6F, 0x35, 0x6D, 0x32, 0xFF, 0x10, 0x0E, 0xCA, 0xAB, 0x21, 0x00, 0xE4, 0x8D, + 0xF9, 0x87, 0x0A, 0xE8, 0x86, 0xFC, 0xC2, 0x04, 0x10, 0x08, 0x02, 0x00, 0x87, 0xAD, 0x05, 0xEC, + 0xA5, 0x04, 0x10, 0x08, 0x06, 0x00, 0xDB, 0xAB, 0x02, 0xA0, 0xFE, 0x02, 0x10, 0x08, 0x04, 0x00, + 0xD6, 0xC0, 0x01, 0xB8, 0x83, 0x03, 0x10, 0x08, 0x04, 0x00, 0xB4, 0xEC, 0x03, 0xDA, 0xCC, 0x03, + 0x10, 0x08, 0x04, 0x00, 0xB4, 0xB6, 0x02, 0x8A, 0xBB, 0x06, 0x10, 0x08, 0x04, 0x00, 0xF6, 0xA1, + 0x04, 0xF6, 0x80, 0x04, 0x10, 0x07, 0x04, 0x00, 0xF6, 0x4A, 0xFE, 0x92, 0x03, 0x10, 0x08, 0x04, + 0x00, 0x9C, 0x8F, 0x0A, 0x88, 0xE7, 0x05, 0xFF, 0x11, 0x44, 0xCE, 0xAB, 0x21, 0x00, 0x0B, 0xCA, + 0xAB, 0x21, 0x02, 0x06, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x6E, 0x61, 0x6D, 0x65, 0x00, + 0x59, 0x75, 0x6B, 0x6F, 0x6E, 0x20, 0x52, 0x69, 0x76, 0x65, 0x72, 0x00, 0x00, 0x6E, 0x61, 0x6D, + 0x65, 0x3A, 0x72, 0x75, 0x00, 0xD0, 0xAE, 0xD0, 0xBA, 0xD0, 0xBE, 0xD0, 0xBD, 0x00, 0x00, 0x77, + 0x61, 0x74, 0x65, 0x72, 0x77, 0x61, 0x79, 0x00, 0x72, 0x69, 0x76, 0x65, 0x72, 0x00, 0xFE}; static_assert(sizeof(way_o5m_data) == 175, "Size check failed"); + char const relation_xml_data[] = "\ \ \ @@ -120,6 +121,7 @@ char const relation_xml_data[] = "\ \ "; + // binary data: relation.o5m unsigned char const relation_o5m_data[] = /* 224 */ {0xFF, 0xE0, 0x04, 0x6F, 0x35, 0x6D, 0x32, 0xFF, 0x10, 0x2B, 0xD7, 0xAC, 0x21, 0x00, 0xAD,