2013-09-20 14:06:53 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
|
|
#endif
|
|
|
|
|
2013-09-20 13:21:11 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2013-09-20 14:06:53 +00:00
|
|
|
#include "seatest.h"
|
|
|
|
|
|
|
|
void test1(void)
|
|
|
|
{
|
|
|
|
assert_bit_set(0, 0x01);
|
|
|
|
assert_bit_set(2, 0x04);
|
|
|
|
}
|
|
|
|
|
|
|
|
void test2(void)
|
|
|
|
{
|
|
|
|
assert_bit_set(0, 0x00);
|
|
|
|
}
|
|
|
|
|
|
|
|
void fixture1(void)
|
|
|
|
{
|
|
|
|
test_fixture_start();
|
|
|
|
run_test(test1);
|
|
|
|
run_test(test2);
|
|
|
|
test_fixture_end();
|
|
|
|
}
|
|
|
|
|
|
|
|
void all_tests(void)
|
|
|
|
{
|
|
|
|
fixture1();
|
|
|
|
}
|
|
|
|
|
2013-09-20 13:21:11 +00:00
|
|
|
int main()
|
|
|
|
{
|
2013-09-20 14:06:53 +00:00
|
|
|
run_tests(all_tests);
|
2013-09-20 13:21:11 +00:00
|
|
|
}
|