feat(tests): added testing framework #11

Merged
Mineplay merged 2 commits from QN-3 into main 2026-01-20 14:07:55 -06:00
2 changed files with 19 additions and 0 deletions
Showing only changes of commit fcc5bec003 - Show all commits

View file

@ -6,7 +6,9 @@
* You may obtain a copy of the License in the file LICENSE or at * You may obtain a copy of the License in the file LICENSE or at
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*/ */
#include "unit/unit.h"
int main(void) { int main(void) {
QNET_TEST_RUN();
return 0; return 0;
} }

17
tests/unit/unit.h Normal file
View file

@ -0,0 +1,17 @@
/*
* Copyright (C) Tristan Franssen, <tristanfranssen@strawhats.nl>.
*
* This software is licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License in the file LICENSE or at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#ifndef QNET_UNIT
#define QNET_UNIT
#include "test.h"
QNET_TEST_START
QNET_TEST_END
#endif /* QNET_UNIT */