Skip to content

Commit

Permalink
use add link
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jul 25, 2024
1 parent cfc24bf commit c3878f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/tests/src/libs/antares/study/test_study.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,14 @@ BOOST_FIXTURE_TEST_CASE(check_filename_limit, OneAreaStudy)
BOOST_CHECK(study->checkForFilenameLimits(false));
BOOST_CHECK(study->checkForFilenameLimits(true, "abc"));

#ifdef YUNI_OS_WINDOWS
//#ifdef YUNI_OS_WINDOWS
std::string area1name(128, 'a');
std::string area2name(128, 'b');
study->areas[0]->name = area1name;
study->areaAdd(area2name);
BOOST_CHECK(!study->checkForFilenameLimits(true)); // areaname limits size to 128
#endif
auto areaB = study->areaAdd(area2name);
AreaAddLinkBetweenAreas(areaA, areaB);
BOOST_CHECK(!study->checkForFilenameLimits(true));
//#endif
}

BOOST_AUTO_TEST_SUITE_END() // version

0 comments on commit c3878f0

Please sign in to comment.