Skip to content

Commit

Permalink
[2_1] test array of string
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Nov 22, 2023
1 parent 2e3ff09 commit c642289
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Kernel/Containers/array_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,14 @@ TEST_CASE ("test contains") {
CHECK_EQ (contains (2, five_elem), true);
CHECK_EQ (contains (3, five_elem), true);
}

TEST_CASE ("array of string") {
auto arr= array<string> ();
arr << "Hello"
<< "1"
<< "2"
<< "3";
CHECK (contains (string ("Hello"), arr));
arr << "";
CHECK (contains (string (""), arr));
}

0 comments on commit c642289

Please sign in to comment.