Create project skeleton
This commit is contained in:
20
tests/foo_tests.c
Normal file
20
tests/foo_tests.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) Camden Dixie O'Brien
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
#include "foo.h"
|
||||
#include "testing.h"
|
||||
|
||||
static void test_foo(void)
|
||||
{
|
||||
const int res = foo();
|
||||
ASSERT_EQ(42, res);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
TESTING_BEGIN();
|
||||
test_foo();
|
||||
return TESTING_END();
|
||||
}
|
||||
Reference in New Issue
Block a user