mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
Merge pull request #13 from ihaworth/master
Small fixes to get the TextTest tests working
This commit is contained in:
commit
852a851aad
@ -22,7 +22,7 @@ CPPFLAGS += -I$(CPPUTEST_HOME)/include
|
|||||||
# Flags passed to the C++ compiler.
|
# Flags passed to the C++ compiler.
|
||||||
CFLAGS += -g -Wall -Wextra
|
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
|
# All tests produced by this Makefile. Remember to add new tests you
|
||||||
# created to the list.
|
# created to the list.
|
||||||
|
|||||||
@ -26,4 +26,4 @@ if __name__ == "__main__":
|
|||||||
for item in items:
|
for item in items:
|
||||||
print(item)
|
print(item)
|
||||||
print("")
|
print("")
|
||||||
update_quality(items)
|
GildedRose(items).update_quality()
|
||||||
|
|||||||
@ -21,7 +21,7 @@ if ARGV.size > 0
|
|||||||
days = ARGV[0].to_i + 1
|
days = ARGV[0].to_i + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
gilded_rose = GildedRose.new
|
gilded_rose = GildedRose.new items
|
||||||
(0...days).each do |day|
|
(0...days).each do |day|
|
||||||
puts "-------- day #{day} --------"
|
puts "-------- day #{day} --------"
|
||||||
puts "name, sellIn, quality"
|
puts "name, sellIn, quality"
|
||||||
@ -29,5 +29,5 @@ gilded_rose = GildedRose.new
|
|||||||
puts item
|
puts item
|
||||||
end
|
end
|
||||||
puts ""
|
puts ""
|
||||||
gilded_rose.update_quality(items)
|
gilded_rose.update_quality
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user