Added Unit Tests

This commit is contained in:
2021-10-01 00:27:36 -07:00
parent 88a75e2ddd
commit 52f622b5c3
10 changed files with 271 additions and 454 deletions

27
test/poker2/card.c Normal file
View File

@ -0,0 +1,27 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include <unity.h>
#include <poker/card.h>
void setUp(void) {
}
void tearDown(void) {
}
void test_add_should_AddNumbersTogether(void) {
TEST_ASSERT_EQUAL_INT32(32, 16+16);
}
int main() {
UNITY_BEGIN();
RUN_TEST(test_add_should_AddNumbersTogether);
return UNITY_END();
}