1 #include "unity.h"
2 #include "UnityHelper.h"
3 #include <stdio.h>
4 #include <string.h>
5
AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected,const EXAMPLE_STRUCT_T actual,const unsigned short line)6 void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line)
7 {
8 UNITY_TEST_ASSERT_EQUAL_INT(expected.x, actual.x, line, "Example Struct Failed For Field x");
9 UNITY_TEST_ASSERT_EQUAL_INT(expected.y, actual.y, line, "Example Struct Failed For Field y");
10 }
11