Merge pull request #13 from ihaworth/master

Small fixes to get the TextTest tests working
This commit is contained in:
Emily Bache 2013-03-27 13:09:51 -07:00
commit 852a851aad
3 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ CPPFLAGS += -I$(CPPUTEST_HOME)/include
# Flags passed to the C++ compiler.
CFLAGS += -g -Wall -Wextra
LD_LIBRARIES = -L$(CPPUTEST_HOME)/lib -lCppUTest -lCppUTestExt
LD_LIBRARIES = -L$(CPPUTEST_HOME)/lib -lCppUTest
# All tests produced by this Makefile. Remember to add new tests you
# created to the list.

View File

@ -26,4 +26,4 @@ if __name__ == "__main__":
for item in items:
print(item)
print("")
update_quality(items)
GildedRose(items).update_quality()

View File

@ -21,7 +21,7 @@ if ARGV.size > 0
days = ARGV[0].to_i + 1
end
gilded_rose = GildedRose.new
gilded_rose = GildedRose.new items
(0...days).each do |day|
puts "-------- day #{day} --------"
puts "name, sellIn, quality"
@ -29,5 +29,5 @@ gilded_rose = GildedRose.new
puts item
end
puts ""
gilded_rose.update_quality(items)
gilded_rose.update_quality
end