5 #include "libpropeller/board/board_unit_tester.h"
14 static void setUp(
void) {
15 a =
new Pin(Board::kPinTie1a);
16 b =
new Pin(Board::kPinTie1b);
19 static void tearDown(
void) {
25 static void test_HighLow(
void) {
27 TEST_ASSERT_EQUAL_INT(1, b->
input());
30 TEST_ASSERT_EQUAL_INT(0, b->
input());
33 static void test_Toggle(
void) {
36 for (
int i = 0; i < 100; i++) {
38 output = output == 1 ? 0 : 1;
39 TEST_ASSERT_EQUAL_INT(output, b->
input());
43 static void test_isOutput(
void) {
51 static void test_Ouput(
void) {
53 TEST_ASSERT_EQUAL_INT(1, b->
input());
56 TEST_ASSERT_EQUAL_INT(0, b->
input());