@@ -42,6 +42,7 @@ void assertDefaultConfig(const osm2ttl::config::Config& config) {
42
42
43
43
ASSERT_FALSE (config.addAreaEnvelope );
44
44
ASSERT_FALSE (config.addAreaEnvelopeRatio );
45
+ ASSERT_FALSE (config.addNodeEnvelope );
45
46
ASSERT_TRUE (config.addSortMetadata );
46
47
ASSERT_FALSE (config.addWayEnvelope );
47
48
ASSERT_FALSE (config.addWayNodeOrder );
@@ -546,6 +547,22 @@ TEST(CONFIG_Config, fromArgsAddAreaEnvelopeRatioLong) {
546
547
ASSERT_TRUE (config.addAreaEnvelopeRatio );
547
548
}
548
549
550
+ // ____________________________________________________________________________
551
+ TEST (CONFIG_Config, fromArgsAddNodeEnvelopeLong) {
552
+ osm2ttl::config::Config config;
553
+ assertDefaultConfig (config);
554
+
555
+ osm2ttl::util::CacheFile cf (" /tmp/dummyInput" );
556
+ auto arg =
557
+ " --" + osm2ttl::config::constants::ADD_NODE_ENVELOPE_OPTION_LONG;
558
+ const int argc = 3 ;
559
+ char * argv[argc] = {const_cast <char *>(" " ), const_cast <char *>(arg.c_str ()),
560
+ const_cast <char *>(" /tmp/dummyInput" )};
561
+ config.fromArgs (argc, argv);
562
+ ASSERT_EQ (" " , config.output .string ());
563
+ ASSERT_TRUE (config.addNodeEnvelope );
564
+ }
565
+
549
566
// ____________________________________________________________________________
550
567
TEST (CONFIG_Config, fromArgsAddWayEnvelopeLong) {
551
568
osm2ttl::config::Config config;
0 commit comments