From da158a5cad51ad80cd3e42902bc663eb240c5617 Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Wed, 8 Nov 2023 19:09:03 -0500 Subject: [PATCH] more test issues --- test/Project.toml | 1 + test/test_circuitzoo_api.jl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/Project.toml b/test/Project.toml index 79427e19..ce51c2e1 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -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" diff --git a/test/test_circuitzoo_api.jl b/test/test_circuitzoo_api.jl index 72cad647..ff993421 100644 --- a/test/test_circuitzoo_api.jl +++ b/test/test_circuitzoo_api.jl @@ -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