Skip to content

Commit

Permalink
Exports (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman authored Jan 13, 2025
1 parent 5429d78 commit aceca8c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SparseArraysBase"
uuid = "0d5efcca-f356-4864-8770-e1ed8d78f208"
authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.2.5"
version = "0.2.6"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Expand Down
9 changes: 9 additions & 0 deletions src/SparseArraysBase.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
module SparseArraysBase

export SparseArrayDOK,
SparseMatrixDOK,
SparseVectorDOK,
eachstoredindex,
isstored,
storedlength,
storedpairs,
storedvalues

include("abstractsparsearrayinterface.jl")
include("sparsearrayinterface.jl")
include("wrappers.jl")
Expand Down
16 changes: 16 additions & 0 deletions test/basics/test_exports.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using SparseArraysBase: SparseArraysBase
using Test: @test, @testset
@testset "Test exports" begin
exports = [
:SparseArraysBase,
:SparseArrayDOK,
:SparseMatrixDOK,
:SparseVectorDOK,
:eachstoredindex,
:isstored,
:storedlength,
:storedpairs,
:storedvalues,
]
@test issetequal(names(SparseArraysBase), exports)
end

0 comments on commit aceca8c

Please sign in to comment.