@@ -57,7 +57,7 @@ void UnitTestYamlParserArrayIncludedMap::executeTest() {
5757
5858 WsjcppYamlItem *pItem = nullptr ;
5959
60- compare (" param1-value" , yaml.getRoot ()->getElement (" param1" )->getValue (), " none value1" );
60+ compare (" param1-value" , yaml.getRoot ()->getElement (" param1" )->getStringValue (), " none value1" );
6161 compare (" param1-line" , yaml.getRoot ()->getElement (" param1" )->getPlaceInFile ().getLine (), " param1: none value1 # it's value for something # olala " );
6262 compare (" param1-original-number-of-line" , yaml.getRoot ()->getElement (" param1" )->getPlaceInFile ().getNumberOfLine (), 1 );
6363 compare (" param1-comment" , yaml.getRoot ()->getElement (" param1" )->getComment (), " it's value for something # olala" );
@@ -66,28 +66,28 @@ void UnitTestYamlParserArrayIncludedMap::executeTest() {
6666 compare (" array-test2-comment" , yaml.getRoot ()->getElement (" array-test2" )->getComment (), " some comment 2" );
6767
6868 pItem = yaml.getRoot ()->getElement (" array-test2" )->getElement (0 );
69- compare (" array-test2-element0-value" , pItem->getValue (), " value21" );
69+ compare (" array-test2-element0-value" , pItem->getStringValue (), " value21" );
7070 compare (" array-test2-element0-comment" , pItem->getComment (), " comment v21" );
7171
7272 pItem = yaml.getRoot ()->getElement (" array-test2" )->getElement (1 );
73- compare (" array-test2-element1-value" , yaml[" array-test2" ][1 ].getValue (), " value22" );
73+ compare (" array-test2-element1-value" , yaml[" array-test2" ][1 ].getStringValue (), " value22" );
7474 compare (" array-test2-element1-comment" , yaml[" array-test2" ][1 ].getComment (), " comment v22" );
7575
7676 pItem = yaml.getRoot ()->getElement (" array-test2" )->getElement (2 );
77- compare (" array-test2-element2-value" , pItem->getValue (), " true" );
77+ compare (" array-test2-element2-value" , pItem->getStringValue (), " true" );
7878 compare (" array-test2-element2-comment" , pItem->getComment (), " comment true" );
7979
8080 compare (" array-and-map-length" , yaml[" array-and-map" ].getLength (), 2 );
8181
8282 pItem = yaml.getRoot ()->getElement (" array-and-map" )->getElement (0 );
83- compare (" array-and-map-element0-value" , pItem->getElement (" submap-param1" )->getValue (), " v01" );
84- compare (" array-and-map-element0-value" , pItem->getElement (" submap-param2" )->getValue (), " v02" );
83+ compare (" array-and-map-element0-value" , pItem->getElement (" submap-param1" )->getStringValue (), " v01" );
84+ compare (" array-and-map-element0-value" , pItem->getElement (" submap-param2" )->getStringValue (), " v02" );
8585
8686 pItem = yaml.getRoot ()->getElement (" array-and-map" )->getElement (1 );
87- compare (" array-and-map-element1-value" , pItem->getElement (" submap-param1" )->getValue (), " v11" );
88- compare (" array-and-map-element1-value" , pItem->getElement (" submap-param2" )->getValue (), " v12" );
87+ compare (" array-and-map-element1-value" , pItem->getElement (" submap-param1" )->getStringValue (), " v11" );
88+ compare (" array-and-map-element1-value" , pItem->getElement (" submap-param2" )->getStringValue (), " v12" );
8989
90- compare (" param2-value" , yaml.getRoot ()->getElement (" param2" )->getValue (), " v2" );
90+ compare (" param2-value" , yaml.getRoot ()->getElement (" param2" )->getStringValue (), " v2" );
9191
9292 std::string sSaved = " " ;
9393 if (compare (" save yaml" , yaml.saveToString (sSaved ), true )) {
0 commit comments