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