Added Unit Tests
This commit is contained in:
27
test/poker2/card.c
Normal file
27
test/poker2/card.c
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user