Merge pull request #446 from Andriamanitra/main

Make Julia compatible with texttests
This commit is contained in:
Emily Bache authored and GitHub committed 2023-06-13 08:18:53 +02:00
commit 12540176cb
3 files changed
+16 -2

No files matched your search

+3 -2
View File
@@ -78,12 +78,13 @@ function main(; days::Int64=2)
Item("Backstage passes to a TAFKAL80ETC concert", 5, 49),
Item("Conjured Mana Cake", 3, 6),
]
for day in 1:days
for day in 0:days
println("-------- day $day --------")
println("name, sellin, quality")
println("name, sellIn, quality")
for item in items
println(item)
end
println()
update_quality!(GildedRose(items))
end
end
+9
View 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)
+4
View File
@@ -31,4 +31,8 @@ diff_program:meld
#executable:${TEXTTEST_HOME}/TypeScript/test/golden-master-text-test.js
#interpreter:node
# Settings for the Julia version
#executable:${TEXTTEST_HOME}/julia/texttest_fixture.jl
#interpreter:julia
filename_convention_scheme:standard