mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-20 21:05:05 +00:00
Add CMake and Unity test framework for c99
This commit is contained in:
1 parent
92bb72732e
commit
2cce0e4a4a
3 files changed
+57
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user