From de3ef9ccaecd7be0477897fd6daeeb5ad412bea7 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Mon, 13 Jan 2025 20:13:06 -0500 Subject: [PATCH] Start adding exports --- Project.toml | 2 +- src/BlockSparseArrays.jl | 9 +++++++++ test/test_exports.jl | 14 ++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 test/test_exports.jl diff --git a/Project.toml b/Project.toml index 7dc754b8..056f7f39 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BlockSparseArrays" uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4" authors = ["ITensor developers and contributors"] -version = "0.2.5" +version = "0.2.6" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" diff --git a/src/BlockSparseArrays.jl b/src/BlockSparseArrays.jl index fd90bcf7..1425f1d0 100644 --- a/src/BlockSparseArrays.jl +++ b/src/BlockSparseArrays.jl @@ -1,4 +1,12 @@ module BlockSparseArrays + +export BlockSparseArray, + BlockSparseMatrix, + BlockSparseVector, + blockstoredlength, + eachblockstoredindex, + eachstoredblock + include("BlockArraysExtensions/BlockArraysExtensions.jl") include("blocksparsearrayinterface/blocksparsearrayinterface.jl") include("blocksparsearrayinterface/linearalgebra.jl") @@ -22,4 +30,5 @@ include("abstractblocksparsearray/cat.jl") include("blocksparsearray/defaults.jl") include("blocksparsearray/blocksparsearray.jl") include("BlockArraysSparseArraysBaseExt/BlockArraysSparseArraysBaseExt.jl") + end diff --git a/test/test_exports.jl b/test/test_exports.jl new file mode 100644 index 00000000..0e0d20ef --- /dev/null +++ b/test/test_exports.jl @@ -0,0 +1,14 @@ +using BlockSparseArrays: BlockSparseArrays +using Test: @test, @testset +@testset "Test exports" begin + exports = [ + :BlockSparseArrays, + :BlockSparseArray, + :BlockSparseMatrix, + :BlockSparseVector, + :blockstoredlength, + :eachblockstoredindex, + :eachstoredblock, + ] + @test issetequal(names(BlockSparseArrays), exports) +end