Skip to content

Commit cb43ed1

Browse files
committed
add bug fix test section
1 parent 2412ebf commit cb43ed1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/run_jsonlab_test.m

+10-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function run_jsonlab_test(tests)
2424
%
2525

2626
if(nargin==0)
27-
tests={'js','jso','bj','bjo','jmap','bmap'};
27+
tests={'js','jso','bj','bjo','jmap','bmap','bugs'};
2828
end
2929

3030
%%
@@ -344,4 +344,13 @@ function run_jsonlab_test(tests)
344344
'[["$",[1,24]]]','compact',1);
345345
test_jsonlab('test multiple root objects with N padding',@savejson,loadbj([savebj({[1,2,3],struct('a',[4,5])}) 'NNN' savebj(struct('b',[4,5]))],'mmaponly',1,'mmapinclude','.b'),...
346346
'[["$1.b",[32,8]]]','compact',1);
347+
end
348+
349+
%%
350+
if(ismember('bugs',tests))
351+
fprintf(sprintf('%s\n',char(ones(1,79)*61)));
352+
fprintf('Test bug fixes\n');
353+
fprintf(sprintf('%s\n',char(ones(1,79)*61)));
354+
test_jsonlab('simplify cell arrays mixing numbers and chars',@savejson,loadjson('[1,0,"-","L",900]'),'[1,0,"-","L",900]','compact',1);
355+
test_jsonlab('simplify cell arrays with string elements',@savejson,loadjson('["j","s","o","n"]'),'["j","s","o","n"]','compact',1);
347356
end

0 commit comments

Comments
 (0)