Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 616 Bytes

README.md

File metadata and controls

38 lines (30 loc) · 616 Bytes

Vittf Is a Tiny Test Framework

Assertions

  • v_assert(expression)
  • v_assert_str(expected, actual)
  • v_assert_pass(expression)
  • v_assert_str_pass(expected, actual)

Example

void	test_name1(void)
{
	v_assert(1 == 1);
	v_assert_str("Hello", "World!");

	v_test_success("Name1");
}

void	suite_name(void)
{
	test_name1();

	v_suite_success("Filename");
}

int		main(void)
{
	suite_name();

	v_full_success("Program");
	return (0);
}

Sources