Skip to content
Snippets Groups Projects
test.c 696 B
#include "unity/unity.h"
#include "word-bank/test/bank-test.h"
#include "wordle/test/wordle-test.h"

void setUp(void) { setup_wordle(); }

void tearDown(void) { teardown_wordle(); }

// not needed when using generate_test_runner.rb
int main(void) {
    UNITY_BEGIN();
    // Bank
    RUN_TEST(test_random_word_should_be_jeter);
    RUN_TEST(test_bank_size_should_be_1529);

    // Wordle
    RUN_TEST(test_gamemode_should_be_solo);
    RUN_TEST(test_gamemode_should_be_versus);
    RUN_TEST(test_gamemode_should_be_computer);
    RUN_TEST(test_answer_shoud_be_balai);
    RUN_TEST(test_validate_letter_should_be_false);
    RUN_TEST(test_validate_letter_should_be_true);
    return UNITY_END();
}