Skip to content

Commit

Permalink
Introduced Aqua.jl test
Browse files Browse the repository at this point in the history
  • Loading branch information
albertomercurio committed Apr 6, 2024
1 parent 0962198 commit 014ea55
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
11 changes: 9 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,26 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"

[compat]
DiffEqCallbacks = "2.24, <3.2.0, >=3.5.0"
Aqua = "0.6, 0.7, 0.8"
DiffEqCallbacks = "2.24, 3"
Distributed = "<0.0.1, 1"
FFTW = "1.5"
Graphs = "1.7.4"
IncompleteLU = "0.2"
LinearAlgebra = "<0.0.1, 1"
LinearMaps = "3"
LinearSolve = "2"
OrdinaryDiffEq = "6.30"
Random = "<0.0.1, 1"
Reexport = "1"
SparseArrays = "<0.0.1, 1"
SpecialFunctions = "2.2"
Test = "<0.0.1, 1"
julia = "1.7"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

[targets]
test = ["Test"]
test = ["Test", "Aqua"]
2 changes: 1 addition & 1 deletion src/QuantumToolbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export tensor, ⊗
export sinm, cosm
export expect
export WignerClenshaw, WignerLaguerre, wigner
export row_major_reshape, tidyup, tidyup!, gaussian, trunc_op, meshgrid, sparse_to_dense, dense_to_sparse
export row_major_reshape, tidyup, tidyup!, gaussian, meshgrid, sparse_to_dense, dense_to_sparse
export get_data, mat2vec, vec2mat
export ptrace, entropy_vn, entanglement
export negativity, partial_transpose
Expand Down
2 changes: 1 addition & 1 deletion src/time_evolution/lr_mesolve.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export lr_mesolve, lr_mesolveProblem, lr_mesolveOptions, LRTimeEvolutionSol, LRMesolveOptions
export lr_mesolve, lr_mesolveProblem, LRTimeEvolutionSol, LRMesolveOptions

#=======================================================#
# STRUCT DEFINITIONS
Expand Down
3 changes: 3 additions & 0 deletions test/aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@testset "Code quality (Aqua.jl)" begin
Aqua.test_all(QuantumToolbox; ambiguities = false,)
end
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using Test
using QuantumToolbox
using Aqua

const GROUP = get(ENV, "GROUP", "All")

const testdir = dirname(@__FILE__)

# Put core tests in alphabetical order
core_tests = [
"aqua.jl",
"correlations_and_spectrum.jl",
"dynamical_fock_dimension_mesolve.jl",
"dynamical-shifted-fock.jl",
Expand Down

0 comments on commit 014ea55

Please sign in to comment.