Skip to content

Commit

Permalink
more test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov committed Nov 9, 2023
1 parent a1077e9 commit da158a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
4 changes: 3 additions & 1 deletion test/test_circuitzoo_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ for T in subtypes(AbstractCircuit)
ms = methods(circ)
@test length(ms) == 1 # this can be relaxed one day, but for now it can check we are not doing weird stuff
m = first(ms)
@test m.isva || inputqubits(circ) == m.nargs-1
if hasmethod(inputqubits, Tuple{T}) # TODO should all of them have this method?
@test m.isva || inputqubits(circ) == m.nargs-1
end
end

0 comments on commit da158a5

Please sign in to comment.