Skip to content

Commit

Permalink
update check script
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg authored Dec 3, 2023
1 parent 0a59e5c commit b3e2ca1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ref/check.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ main() = begin
io = PipeBuffer()
pipeline(`./a.out $l $(i - 1) $(j - 1)`; stdout=io, stderr=devnull) |> run
val = parse(Int, read(io, String) |> rstrip) + o
val == lut[i][j] || @show (i, j) val lut[i][j]
@assert val == lut[i][j]
@assert val == lut[i][j] ((i, j), val, lut[i][j])
end
end
end
Expand All @@ -68,8 +67,7 @@ main() = begin
io = PipeBuffer()
pipeline(`./a.out $(100 + l) $(i - 1)`; stdout=io, stderr=devnull) |> run
val = parse(Int, read(io, String) |> rstrip)
val == lut[i] || @show i val lut[i]
@assert val == lut[i]
@assert val == lut[i] (i, val, lut[i])
end
end

Expand Down

0 comments on commit b3e2ca1

Please sign in to comment.