UnityHelper.c 405 B

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