mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
* Move "using namespace std;" from header to module file (to no longer pollute the global namespace). * Fix inconsistency of having namespace prefix in test code. * Add include guard to GildedRose.h. * Avoid std::endl. * Have consistent white-space.
11 lines
244 B
C++
11 lines
244 B
C++
#include <gtest/gtest.h>
|
|
#include "GildedRose.h"
|
|
|
|
TEST(GildedRoseTest, Foo) {
|
|
std::vector<Item> items;
|
|
items.push_back(Item("Foo", 0, 0));
|
|
GildedRose app(items);
|
|
app.updateQuality();
|
|
EXPECT_EQ("fixme", app.items[0].name);
|
|
}
|