Skip to content

Commit

Permalink
Add exports (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman authored Jan 24, 2025
1 parent 8f6a233 commit 3059932
Show file tree
Hide file tree
Showing 3 changed files with 20 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 = "QuantumOperatorDefinitions"
uuid = "826dd319-6fd5-459a-a990-3a4f214664bf"
authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.1.0"
version = "0.1.1"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
2 changes: 2 additions & 0 deletions src/QuantumOperatorDefinitions.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module QuantumOperatorDefinitions

export @OpName_str, @SiteType_str, @StateName_str, OpName, SiteType, StateName, , op, state

include("sitetype.jl")
include("state.jl")
include("op.jl")
Expand Down
17 changes: 17 additions & 0 deletions test/test_exports.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using QuantumOperatorDefinitions: QuantumOperatorDefinitions
using Test: @test, @testset
@testset "Test exports" begin
exports = [
:QuantumOperatorDefinitions,
Symbol("@OpName_str"),
Symbol("@SiteType_str"),
Symbol("@StateName_str"),
:OpName,
:SiteType,
:StateName,
:,
:op,
:state,
]
@test issetequal(names(QuantumOperatorDefinitions), exports)
end

0 comments on commit 3059932

Please sign in to comment.