You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
321 B
Julia

function verify(day, task, case, expresult)
taskfun = getfield(Main, Symbol("task", task - 1))
filename = "day$(@sprintf "%02d" day)\\data\\case$(@sprintf "%02d" case).txt"
println("Day $day Task $task Case $case")
(result = open(taskfun, filename)) |> display
@assert result == expresult
end