Skip to content

Commit

Permalink
[arcane,tests] Add test for debugName() (thx codecov!)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexlHer committed Aug 26, 2024
1 parent 60cbf33 commit 560c22d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arcane/src/arcane/tests/accelerator/NumArrayUnitTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class NumArrayUnitTest
void _executeTest2();
void _executeTest3();
void _executeTest4(eMemoryRessource mem_kind);
void _executeTest5();

private:

Expand Down Expand Up @@ -192,6 +193,7 @@ executeTest()
_executeTest2();
_executeTest2();
_executeTest3();
_executeTest5();
}

/*---------------------------------------------------------------------------*/
Expand Down Expand Up @@ -673,6 +675,20 @@ _executeTest4(eMemoryRessource mem_kind)
}
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

void NumArrayUnitTest::
_executeTest5()
{
ValueChecker vc(A_FUNCINFO);

NumArray<Int32, MDDim1> t1;
t1.setDebugName("Bonjour");
String str_test = "Bonjour";
vc.areEqual(t1.debugName(), str_test, "Pas bonjour :-(");
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
namespace
Expand Down

0 comments on commit 560c22d

Please sign in to comment.