From 3b73a49b93d160abddbe5960813690bc53b787ba Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Thu, 19 Sep 2024 07:55:01 +0200 Subject: [PATCH] specific assert for gas_fluxes --- matlab/tests/test_requestnames.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matlab/tests/test_requestnames.m b/matlab/tests/test_requestnames.m index b8fae2bb..92c5ca1e 100644 --- a/matlab/tests/test_requestnames.m +++ b/matlab/tests/test_requestnames.m @@ -32,6 +32,10 @@ classdef (SharedTestFixtures={... case 'eqdsk' % avoid writing files in /tmp, may not be allowed gdat_call = sprintf(['gdat_%s(%s,''%s'',''write'',0)'],lower(testCase.Machine),shot,request); + case 'gas_fluxes' + % test new gas flow entries + shot = 83173; % (GV1=GV2 case) + gdat_call = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'')'],shot,request); case 'radcam' % need a newer shot for tcv radcam shot = 81102; @@ -60,6 +64,8 @@ classdef (SharedTestFixtures={... switch request case {'ece', 'expcode', 'ids', 'ni', 'ti', 'transp'} % tests not yet fully implemented and empty + case 'gas_fluxes' + testCase.assertTrue(iscell(gdat_out.data) && ~isempty(gdat_out.data{1})) case 'rtc' % in this case .data is empty, all in .scd_mems testCase.assertTrue(isfield(gdat_out,'scd_mems') && isstruct(gdat_out.scd_mems)); -- GitLab