Skip to content

Commit

Permalink
Merge branch 'update/tools-dependency' into 'develop'
Browse files Browse the repository at this point in the history
Updating the tools dependency and removing erroneous tests

See merge request njoy/ENDFtk!6
  • Loading branch information
whaeck committed Oct 15, 2024
2 parents 5436586 + 76283fc commit de664a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 41 deletions.
2 changes: 1 addition & 1 deletion cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include( FetchContent )

FetchContent_Declare( tools
GIT_REPOSITORY ../../njoy/tools
GIT_TAG e0eb6b4f3e6d7afce7c2c521e68b4f223c50fe2d # tag: v0.4.0
GIT_TAG 662232049b7230da645d741dad413c5f1a5b3ab1 # NOT A RELEASED VERSION - CHANGE ME!
)

#######################################################################
Expand Down
21 changes: 1 addition & 20 deletions src/ENDFtk/tree/File/test/File.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,22 +488,7 @@ SCENARIO( "tree::File" ) {

GIVEN( "invalid data for a tree::File" ) {

WHEN( "the data is read from a string/stream with an invalid FEND" ) {

std::string fileString = chunk() + invalidFEND();
auto position = fileString.begin();
auto start = fileString.begin();
auto end = fileString.end();
long lineNumber = 1;
HeadRecord head( position, end, lineNumber );

THEN( "an exception is thrown upon construction" ) {

CHECK_THROWS( tree::File( head, start, position, end, lineNumber ) );
} // THEN
} // WHEN

WHEN( "the data is read from a string/stream without a SEND" ) {
WHEN( "the data is read from a string/stream that abruptly ends (no END record)" ) {

std::string fileString = chunk();
auto position = fileString.begin();
Expand Down Expand Up @@ -697,7 +682,3 @@ std::string validSEND(){
std::string validFEND(){
return " 125 0 0 \n";
}

std::string invalidFEND(){
return " 125 3 0 \n";
}
21 changes: 1 addition & 20 deletions src/ENDFtk/tree/Material/test/Material.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,22 +800,7 @@ SCENARIO( "tree::Material" ) {

GIVEN( "invalid data for a tree::File" ) {

WHEN( "the data is read from a string/stream with an invalid MEND" ) {

std::string materialString = chunk() + invalidMEND();
auto position = materialString.begin();
auto start = materialString.begin();
auto end = materialString.end();
long lineNumber = 1;
HeadRecord head( position, end, lineNumber );

THEN( "an exception is thrown upon construction" ) {

CHECK_THROWS( tree::Material( head, start, position, end, lineNumber ) );
} // THEN
} // WHEN

WHEN( "the data is read from a string/stream without a MEND" ) {
WHEN( "the data is read from a string/stream that abruptly ends (no END record)" ) {

std::string materialString = chunk();
auto position = materialString.begin();
Expand Down Expand Up @@ -985,7 +970,3 @@ std::string validFEND(){
std::string validMEND(){
return " 0 0 0 \n";
}

std::string invalidMEND(){
return " 2 0 0 \n";
}

0 comments on commit de664a5

Please sign in to comment.