mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
make julia compatible with texttests
This commit is contained in:
parent
a674623c1c
commit
e6445f1782
@ -78,12 +78,13 @@ function main(; days::Int64=2)
|
|||||||
Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
|
Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
|
||||||
Item("Conjured Mana Cake", 3, 6),
|
Item("Conjured Mana Cake", 3, 6),
|
||||||
]
|
]
|
||||||
for day in 1:days
|
for day in 0:days
|
||||||
println("-------- day $day --------")
|
println("-------- day $day --------")
|
||||||
println("name, sellin, quality")
|
println("name, sellIn, quality")
|
||||||
for item in items
|
for item in items
|
||||||
println(item)
|
println(item)
|
||||||
end
|
end
|
||||||
|
println()
|
||||||
update_quality!(GildedRose(items))
|
update_quality!(GildedRose(items))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
9
julia/texttest_fixture.jl
Normal file
9
julia/texttest_fixture.jl
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
include("gilded_rose.jl")
|
||||||
|
|
||||||
|
if length(ARGS) > 0
|
||||||
|
days = parse(Int64, ARGS[1])
|
||||||
|
else
|
||||||
|
days = 2
|
||||||
|
end
|
||||||
|
|
||||||
|
main(days=days)
|
||||||
@ -31,4 +31,8 @@ diff_program:meld
|
|||||||
#executable:${TEXTTEST_HOME}/TypeScript/test/golden-master-text-test.js
|
#executable:${TEXTTEST_HOME}/TypeScript/test/golden-master-text-test.js
|
||||||
#interpreter:node
|
#interpreter:node
|
||||||
|
|
||||||
|
# Settings for the Julia version
|
||||||
|
#executable:${TEXTTEST_HOME}/julia/texttest_fixture.jl
|
||||||
|
#interpreter:julia
|
||||||
|
|
||||||
filename_convention_scheme:standard
|
filename_convention_scheme:standard
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user