From e4148044451e9fc362a0ac7c1c26789bdbfefc37 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 10 Apr 2023 06:08:30 +0300 Subject: [PATCH] Test assert macro --- Tests/Marco.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Tests/Marco.cpp b/Tests/Marco.cpp index 6e224b2f..189e9cf2 100644 --- a/Tests/Marco.cpp +++ b/Tests/Marco.cpp @@ -19,6 +19,7 @@ #include #include +#include #include __constructor void TestMacros() @@ -63,6 +64,17 @@ __constructor void TestMacros() } } + { + int a = 10; + assert(a == 10); + + const char *str = "Hello"; + assert(str != nullptr && str[0] == 'H'); + + bool flag = false; + assert(!flag); + } + debug("-------------------------"); {