xaizek / stic (License: MIT) (since 2018-12-07)
Simple Tests In C with optional automatic test registration in C.
<root> / doc / hello_seatest.c (ab40966f1621be6e5fee0f652c4dc4b40d06227c) (695B) (mode 100644) [raw]
#include "seatest.h"
//
// create a test...
//
void test_hello_world()
{
	char *s = "hello world!";
	assert_string_equal("hello world!", s);
	assert_string_contains("hello", s);
	assert_string_doesnt_contain("goodbye", s);
	assert_string_ends_with("!", s);
	assert_string_starts_with("hell", s);
}

//
// put the test into a fixture...
//
void test_fixture_hello( void )
{
	test_fixture_start();      
	run_test(test_hello_world);   
	test_fixture_end();       
}

//
// put the fixture into a suite...
//
void all_tests( void )
{
	test_fixture_hello();	
}

//
// run the suite!
//
int main( int argc, char** argv )
{
	run_tests(all_tests);	
	return 0;
}
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/stic

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/stic

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master