Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jul 15, 2023
1 parent 46f6a06 commit bbbb987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/teststl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,9 @@ class TestStl : public TestFixture {
checkNormal("char h() {\n"
" std::string s;\n"
" std::string_view sv(s);\n"
" return s[0];\n"
" return s[2];\n"
"}\n");
TODO_ASSERT_EQUALS("test.cpp:4:error:Out of bounds access in expression 's[0]' because 's' is empty.\n", "", errout.str());
TODO_ASSERT_EQUALS("test.cpp:4:error:Out of bounds access in expression 's[2]' because 's' is empty.\n", "", errout.str());
}

void outOfBoundsSymbolic()
Expand Down

0 comments on commit bbbb987

Please sign in to comment.