From de74b2a35bbe2c22f17455fef02448bdaa63fbe2 Mon Sep 17 00:00:00 2001 From: Yi-Te Huang Date: Tue, 5 Nov 2024 13:35:14 +0900 Subject: [PATCH] minor changes --- test/runtests.jl | 5 +++-- test/test_utils.jl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index c23bc83f..ef3d1904 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -5,8 +5,6 @@ const GROUP = get(ENV, "GROUP", "All") const testdir = dirname(@__FILE__) -include("test_utils.jl") - # Put Core tests in alphabetical order core_tests = [ "ADOs.jl", @@ -38,6 +36,8 @@ if (GROUP == "All") || (GROUP == "Core") HierarchicalEOM.about() + include(joinpath(testdir, "test_utils.jl")) + for test in core_tests include(joinpath(testdir, test)) end @@ -55,5 +55,6 @@ if (GROUP == "CUDA_Ext")# || (GROUP == "All") HierarchicalEOM.about() CUDA.versioninfo() + include(joinpath(testdir, "test_utils.jl")) include(joinpath(testdir, "gpu", "CUDAExt.jl")) end diff --git a/test/test_utils.jl b/test/test_utils.jl index db9f2a82..a5326295 100644 --- a/test/test_utils.jl +++ b/test/test_utils.jl @@ -1,4 +1,4 @@ -function _is_Matrix_approx(M1, M2; atol = 1.0e-6) +function _is_Matrix_approx(M1::QuantumObject, M2; atol = 1.0e-6) s1 = size(M1) s2 = size(M2) if s1 == s2