Skip to content

Commit 7036b2c

Browse files
committed
correction of identation
1 parent ab6ebb6 commit 7036b2c

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

test/teststl.cpp

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -984,25 +984,24 @@ class TestStl : public TestFixture {
984984
" return sv[sv.size()] == '\\0';\n"
985985
"}\n");
986986
ASSERT_EQUALS("[test.cpp:2:12]: error: Out of bounds access of sv, index 'sv.size()' is out of bounds. [containerOutOfBoundsIndexExpression]\n", errout_str());
987-
check("void f(){\n"
988-
" std::vector<double> v = {0.0, 0.1};\n"
989-
" (void)v[0];\n"
990-
"}\n");
991-
ASSERT_EQUALS("", errout_str());
992-
993-
994-
check("void f(){\n"
995-
" std::array<int,2> a = {1,2};\n"
996-
" (void)a[1];\n"
997-
"}\n");
998-
ASSERT_EQUALS("", errout_str());
999987

988+
check("void f(){\n"
989+
" std::vector<double> v = {0.0, 0.1};\n"
990+
" (void)v[0];\n"
991+
"}\n");
992+
ASSERT_EQUALS("", errout_str());
1000993

1001-
check("void f(){\n"
1002-
" std::vector<int> v;\n"
1003-
" v.push_back(42);\n"
1004-
" (void)v[0];\n"
1005-
"}\n");
994+
check("void f(){\n"
995+
" std::array<int,2> a = {1,2};\n"
996+
" (void)a[1];\n"
997+
"}\n");
998+
ASSERT_EQUALS("", errout_str());
999+
1000+
check("void f(){\n"
1001+
" std::vector<int> v;\n"
1002+
" v.push_back(42);\n"
1003+
" (void)v[0];\n"
1004+
"}\n");
10061005
ASSERT_EQUALS("", errout_str());
10071006

10081007
}

0 commit comments

Comments
 (0)