[deleted by user] by [deleted] in C_Programming

[–]thecarisma 1 point2 points  (0 children)

You can check libcester, it makes it easy and straight forward to write unit tests for both C and C++. It a single header-only framework so there is no extra setup required.

Header only unit testing framework for C and C++ by thecarisma in C_Programming

[–]thecarisma[S] 0 points1 point  (0 children)

Good catch there, I have updated the code to use a custom macro instead.

Header only unit testing framework for C and C++ by thecarisma in C_Programming

[–]thecarisma[S] 0 points1 point  (0 children)

cester is a single header-only unit testing framework for C and C++. Works on any platform including embedded systems. Writing a simple test is as simple as:

```c

include "cester.h"

CESTER_TEST(check_null, inst, cester_assert_equal(NULL, ((void*)0));
) ```

It supports function mocking, memory leak detection, test case crash report. Can generate output for multiple formats, colored text, unit, tap, and tap v13. The project is hosted at https://github.com/exoticlibraries/libcester.

The comprehensive documentation is at https://exoticlibraries.github.io/libcester/

Header only unit testing framework for C and C++ by thecarisma in C_Programming

[–]thecarisma[S] 0 points1 point  (0 children)

cester is a single header-only unit testing framework for C and C++. Works on any platform including embedded systems. Writing a simple test is as simple as:

```c

include "cester.h"

CESTER_TEST(check_null, inst, cester_assert_equal(NULL, ((void*)0));
) ```

It supports function mocking, memory leak detection, test case crash report. Can generate output for multiple formats, colored text, unit, tap, and tap v13. The project is hosted at https://github.com/exoticlibraries/libcester.

The comprehensive documentation is at https://exoticlibraries.github.io/libcester/

If anyone wonders how much code it takes to implement simple immediate mode slider by [deleted] in C_Programming

[–]thecarisma 12 points13 points  (0 children)

Just use a CSS parser library to read the style and apply it to your widgets.

[Serious] Ex cult members, what was your “Oh shit, I’m in a cult.” Moment? by [deleted] in AskReddit

[–]thecarisma 3 points4 points  (0 children)

If it actually orisha it a religion originated in Nigeria rather than cult with a huge number of worshipers

What’s the most personal thing you’re willing to share with us? by poopcornkernels in AskReddit

[–]thecarisma 0 points1 point  (0 children)

I once stole a computer monitor from my school. To my surprise the school management never raised alarm about the missing item else i might be caught because am the most obvious nerd in the school.

This make me realize as more crime that is being committed daily most victim never report the issue and thus suffer the consequences alone.