From 2decd8d01211bb8d1b493d1e0a70e64287b63441 Mon Sep 17 00:00:00 2001 From: albert-de-montserrat Date: Thu, 26 Sep 2024 10:52:42 +0200 Subject: [PATCH] format test --- test/test_save_load.jl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test_save_load.jl b/test/test_save_load.jl index 56a08c59..905b3fa9 100644 --- a/test/test_save_load.jl +++ b/test/test_save_load.jl @@ -39,17 +39,18 @@ using JLD2, JustPIC, JustPIC._2D phase_ratios_cuda = CuArray(phase_ratios2) phases_cuda = CuArray(phases2) - @test particles_cuda isa JustPIC.Particles{CUDABackend} + @test particles_cuda isa JustPIC.Particles{CUDABackend} @test phase_ratios_cuda isa JustPIC.PhaseRatios{CUDABackend} - @test phases_cuda isa CuArray + @test phases_cuda isa CuArray elseif isdefined(Main, :AMDGPU) particles_amdgpu = ROCArray(particles2) phase_ratios_amdgpu = ROCArray(phase_ratios2) phases_amdgpu = ROCArray(phases2) - @test particles_cuda isa JustPIC.Particles{AMDGPUBackend} + + @test particles_cuda isa JustPIC.Particles{AMDGPUBackend} @test phase_ratios_cuda isa JustPIC.PhaseRatios{AMDGPUBackend} - @test phases_cuda isa ROCArray + @test phases_cuda isa ROCArray end end