mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 15:01:28 +00:00
21 lines
474 B
C
21 lines
474 B
C
#include "unity.h"
|
|
#include "GildedRose.h"
|
|
|
|
void setUp (void) {} /* Is run before every test, put unit init calls here. */
|
|
void tearDown (void) {} /* Is run after every test, put unit clean-up calls here. */
|
|
|
|
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();
|
|
}
|