From 30e52f0c5687759a64857fba45dcfe2363ce98de Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sun, 3 Nov 2024 02:12:25 -0500 Subject: [PATCH] feat: update tests --- expected.json | 2 +- src/simple.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/expected.json b/expected.json index d77f95a..bdc99f9 100644 --- a/expected.json +++ b/expected.json @@ -1 +1 @@ -[{"name":"cppcheck","results":[{"score":84,"comment":"### Test results summary\n\n1. error: 2\n2. warning: 0\n3. portability: 0\n4. performance: 0\n5. style: 6\n6. information: 0\n7. debug: 0\n"}],"force_quit":false}] +[{"name":"cppcheck","results":[{"score":85,"comment":"### Test results summary\n\n1. error: 2\n2. warning: 0\n3. portability: 0\n4. performance: 0\n5. style: 5\n6. information: 0\n7. debug: 0\n"}],"force_quit":false}] diff --git a/src/simple.cpp b/src/simple.cpp index e422296..5f2b35f 100644 --- a/src/simple.cpp +++ b/src/simple.cpp @@ -11,3 +11,5 @@ void memoryLeaks() { delete doubleDel; delete doubleDel; } + +int main() { memoryLeaks(); }