Skip to content

Commit

Permalink
Test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Nov 21, 2024
1 parent 6cc84b1 commit 6eddd56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/default/test/test_examples.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@eval module $(gensym())
using {PKGNAME}: {PKGNAME}
using Test: @test, @testset

@testset "examples" begin
include(joinpath(pkgdir({PKGNAME}), "examples", "README.jl"))
end
end
8 changes: 8 additions & 0 deletions test/test_examples.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@eval module $(gensym())
using ITensorPkgSkeleton: ITensorPkgSkeleton
using Test: @test, @testset

@testset "examples" begin
include(joinpath(pkgdir(ITensorPkgSkeleton), "examples", "README.jl"))
end
end

0 comments on commit 6eddd56

Please sign in to comment.