summaryrefslogtreecommitdiff
path: root/lab_6/unity/examples/example_3/helper/UnityHelper.c
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-26 10:24:00 -0800
committerFuwn <[email protected]>2026-02-26 10:31:15 -0800
commita14f361a60f55299e0057c419cc59e5194a77854 (patch)
treeedf54089f5849ee4dfdac48bd04bd8c271cfb62a /lab_6/unity/examples/example_3/helper/UnityHelper.c
parentfeat(homework_2): Add implementation (diff)
downloadcst456-a14f361a60f55299e0057c419cc59e5194a77854.tar.xz
cst456-a14f361a60f55299e0057c419cc59e5194a77854.zip
feat(lab_6): Add initial files
Diffstat (limited to 'lab_6/unity/examples/example_3/helper/UnityHelper.c')
-rw-r--r--lab_6/unity/examples/example_3/helper/UnityHelper.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lab_6/unity/examples/example_3/helper/UnityHelper.c b/lab_6/unity/examples/example_3/helper/UnityHelper.c
new file mode 100644
index 0000000..9cf42c6
--- /dev/null
+++ b/lab_6/unity/examples/example_3/helper/UnityHelper.c
@@ -0,0 +1,10 @@
+#include "unity.h"
+#include "UnityHelper.h"
+#include <stdio.h>
+#include <string.h>
+
+void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line)
+{
+ UNITY_TEST_ASSERT_EQUAL_INT(expected.x, actual.x, line, "Example Struct Failed For Field x");
+ UNITY_TEST_ASSERT_EQUAL_INT(expected.y, actual.y, line, "Example Struct Failed For Field y");
+}