mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
19 lines
310 B
C
19 lines
310 B
C
#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();
|
|
}
|
|
|