Add CMake and Unity test framework for c99

This commit is contained in:
Anders Arnholm committed 2018-10-30 18:29:14 +01:00
1 parent 92bb72732e
commit 2cce0e4a4a
3 files changed
+57

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#include "unity.h"
#include "GildedRose.h"
void test_NameOfItem(void)
{
Item items[1];
init_item(items, "Foo", 0, 0);
update_quality(items, 1);
TEST_ASSERT_EQUAL_STRING( "fixme", items[0].name );
}
int main(void)
{
UNITY_BEGIN();
RUN_TEST(test_NameOfItem);
return UNITY_END();
}