Skip to content

Commit

Permalink
Fix tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
jipolanco committed Sep 18, 2024
1 parent c09b755 commit d0c26b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/gridtypes/multiblock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ struct VTKBlock
VTKBlock(xelm) = new(xelm, Union{VTKFile,VTKBlock}[])
end

Base.close(vtb::VTKBlock) = vtk_save(vtb)
xml_block_root(vtb::VTKBlock) = vtb.xelm

"""
Expand Down
1 change: 1 addition & 0 deletions test/pvdCollection.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env julia

using WriteVTK
using Test

using Printf: @sprintf

Expand Down
5 changes: 4 additions & 1 deletion test/structured.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

using WriteVTK
using StaticArrays: SVector
using Test

const FloatType = Float32
const vtk_filename_noext = "structured"
Expand Down Expand Up @@ -111,9 +112,11 @@ function generate_structured(grid_format, ::Val{dim}) where {dim}
vtk["myVector.SVector"] = vs

# Save and close vtk file.
close(vtk)
files = close(vtk)
@test isopen(vtk) == false
end

files
end

function main()
Expand Down

0 comments on commit d0c26b0

Please sign in to comment.