mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +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.
12 lines
264 B
C++
12 lines
264 B
C++
#include <catch2/catch_all.hpp>
|
|
#include "GildedRose.h"
|
|
|
|
TEST_CASE("GildedRoseUnitTest", "Foo")
|
|
{
|
|
std::vector<Item> items;
|
|
items.push_back(Item("Foo", 0, 0));
|
|
GildedRose app(items);
|
|
app.updateQuality();
|
|
REQUIRE("fixme" == app.items[0].name);
|
|
}
|