Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ticket #3581 - added missing newlines to the test code

  • Loading branch information...
commit 69567515ce015098434b0b86244e1e0a374e75f5 1 parent 8f827aa
@zblair zblair authored
Showing with 20 additions and 20 deletions.
  1. +20 −20 test/testother.cpp
View
40 test/testother.cpp
@@ -4586,31 +4586,31 @@ class TestOther : public TestFixture {
ASSERT_EQUALS("[test.cpp:4]: (error) Memory pointed to by 'p' is freed twice.\n", errout.str());
check(
- "~LineMarker() {"
- " delete pxpm;"
- "}"
- "LineMarker &operator=(const LineMarker &) {"
- " delete pxpm;"
- " pxpm = NULL;"
- " return *this;"
+ "~LineMarker() {\n"
+ " delete pxpm;\n"
+ "}\n"
+ "LineMarker &operator=(const LineMarker &) {\n"
+ " delete pxpm;\n"
+ " pxpm = NULL;\n"
+ " return *this;\n"
"}"
);
ASSERT_EQUALS("", errout.str());
check(
- "void bug()"
- "{"
- " int* ptr = NULL;"
- " try"
- " {"
- " ptr = new int(4);"
- " }"
- " catch(...)"
- " {"
- " delete ptr;"
- " throw;"
- " }"
- " delete ptr;"
+ "void foo()\n"
+ "{\n"
+ " int* ptr = NULL;\n"
+ " try\n"
+ " {\n"
+ " ptr = new int(4);\n"
+ " }\n"
+ " catch(...)\n"
+ " {\n"
+ " delete ptr;\n"
+ " throw;\n"
+ " }\n"
+ " delete ptr;\n"
"}"
);
ASSERT_EQUALS("", errout.str());
Please sign in to comment.
Something went wrong with that request. Please try again.