Commit Graph

19 Commits

Author SHA1 Message Date
Gwendolyn 083892db7a cleanup, code style 2022-01-11 20:01:15 +01:00
Gwendolyn d163648a4d rework cmake a bit 2022-01-11 19:30:53 +01:00
Gwendolyn 421cace0c7 basic prng functionality with seeding via cli argument 2022-01-06 03:14:37 +01:00
Gwendolyn 833f548d5d set XTEST compile definition so that the assert header works properly 2022-01-06 03:07:18 +01:00
Gwendolyn 29b2185728 added -Wextra and fixed resulting warnings 2022-01-06 02:44:33 +01:00
Gwendolyn fcc5557d55 cleaned up .gitignore a bit 2022-01-06 02:12:01 +01:00
Gwendolyn 7b8d48004e restructured project files and CMakeLists.txt in a way that hopefully makes sense 2022-01-06 02:06:45 +01:00
Gwendolyn ec262ba62f xtest init function to parse arguments and provide functionality to specify output format, list tests and only run/list tests that match a filter 2022-01-05 02:57:33 +01:00
Gwendolyn 9131218783 better XTEST_MAIN macro so it doesn't break when the function contains commas 2022-01-05 02:56:42 +01:00
Gwendolyn ec8d2cc79a parameter names in the function typedefs for better clarity 2022-01-05 02:56:42 +01:00
Gwendolyn 9d3f572667 use _Bool instead of int for boolean variables 2022-01-03 17:29:11 +01:00
Gwendolyn e15b1af7e0 improved assertion message for memory assertions 2022-01-03 17:26:10 +01:00
Gwendolyn 19ebe3d7b6 move a define and include from header to source file 2022-01-03 16:18:23 +01:00
Gwendolyn 791742d885 move xassert.h to assert/assert.h so it can be included as <assert.h> by prepending the assert/ dir to the include search path and use include_next to facilitate that. Removed -pedantic from C flags of examples because include_next is an extension. 2022-01-03 16:17:25 +01:00
Gwendolyn 88d3836926 cute optional macros for the main function of a test 2022-01-03 15:21:26 +01:00
Gwendolyn c6280ddf85 gitignore .idea/ dir 2022-01-03 15:21:01 +01:00
Gwendolyn 24e7e0418f use `__typeof__` instead of `typeof` and `__func__` instead of `__ASSERT_FUNC` for compatibility with other compilers and standard libraries (__ASSERT_FUNC seems to be a cygwin thing) 2022-01-03 15:20:44 +01:00
Gwendolyn e20003c073 first version, with some examples 2022-01-02 15:00:54 +01:00
gwendolyn 0c291b3e03
Initial commit 2022-01-02 14:55:36 +01:00