Also apt install X11 tools for testing.
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -17,7 +17,9 @@ jobs:
|
||||
cmake-version: '3.13.x'
|
||||
|
||||
- name: Get Libraries
|
||||
run: git submodule update --init --recursive
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
sudo apt install xorg-dev libglu1-mesa-dev
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
@ -15,6 +15,7 @@ void tearDown(void) {
|
||||
}
|
||||
|
||||
|
||||
//cardGetSuit
|
||||
void test_cardGetSuit_should_ReturnCardsSuit(void) {
|
||||
TEST_ASSERT_EQUAL_UINT8(CARD_SUIT_CLUBS, cardGetSuit(CARD_CLUBS_ACE));
|
||||
TEST_ASSERT_EQUAL_UINT8(CARD_SUIT_CLUBS, cardGetSuit(CARD_CLUBS_TWO));
|
||||
@ -30,6 +31,7 @@ void test_cardGetSuit_should_ReturnCardsSuit(void) {
|
||||
TEST_ASSERT_EQUAL_UINT8(CARD_SUIT_DIAMONDS, cardGetSuit(CARD_DIAMONDS_ACE));
|
||||
}
|
||||
|
||||
//cardGetNumber
|
||||
void test_cardGetNumber_should_ReturnCardsNumber(void) {
|
||||
TEST_ASSERT_EQUAL_UINT8(CARD_ACE, cardGetNumber(CARD_CLUBS_ACE));
|
||||
TEST_ASSERT_EQUAL_UINT8(CARD_TWO, cardGetNumber(CARD_CLUBS_TWO));
|
||||
@ -45,6 +47,7 @@ void test_cardGetNumber_should_ReturnCardsNumber(void) {
|
||||
TEST_ASSERT_EQUAL_UINT8(CARD_ACE, cardGetNumber(CARD_DIAMONDS_ACE));
|
||||
}
|
||||
|
||||
//cardGet
|
||||
void test_cardGet_should_ReturnTheCard(void) {
|
||||
TEST_ASSERT_EQUAL_UINT8(CARD_CLUBS_ACE, cardGet(CARD_ACE, CARD_SUIT_CLUBS));
|
||||
TEST_ASSERT_EQUAL_UINT8(CARD_CLUBS_TWO, cardGet(CARD_TWO, CARD_SUIT_CLUBS));
|
||||
@ -68,6 +71,7 @@ void test_cardGet_should_ReturnTheCard(void) {
|
||||
);
|
||||
}
|
||||
|
||||
//cardWriteDeck
|
||||
void test_cardWriteDeck_should_WriteCardsToArray(void) {
|
||||
card_t cards[CARD_DECK_SIZE];
|
||||
cardWriteDeck(cards);
|
||||
|
Reference in New Issue
Block a user