Skip to content

Commit

Permalink
[test] pass all tests on matlab R2010b
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 27, 2024
1 parent 2008934 commit b482c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/run_jsonlab_test.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function run_jsonlab_test(tests)
'{"_MapData_":[[1.1,true],[1.2,"-_-"]]}', 'compact', 1, 'usemap', 1);
end
if (exist('dictionary'))
test_jsonlab('dictionary with string keys', @savejson, dictionary(["Andy", "^_^"], {true, '-_-'}), ...
test_jsonlab('dictionary with string keys', @savejson, dictionary([string('Andy'), string('^_^')], {true, '-_-'}), ...
'{"Andy":true,"^_^":"-_-"}', 'compact', 1, 'usemap', 1);
test_jsonlab('dictionary with cell keys', @savejson, dictionary({'Andy', '^_^'}, {true, '-_-'}), ...
'{"_MapData_":[["Andy",true],["^_^","-_-"]]}', 'compact', 1, 'usemap', 1);
Expand Down Expand Up @@ -252,7 +252,7 @@ function run_jsonlab_test(tests)
'{U<4>AndyTU<3>^_^SU<3>-_-}', 'debug', 1, 'usemap', 1);
end
if (exist('dictionary'))
test_jsonlab('dictionary with string keys', @savebj, dictionary(["Andy", "^_^"], {true, '-_-'}), ...
test_jsonlab('dictionary with string keys', @savebj, dictionary([string('Andy'), string('^_^')], {true, '-_-'}), ...
'{U<4>AndyTU<3>^_^SU<3>-_-}', 'debug', 1, 'usemap', 1);
test_jsonlab('dictionary with cell keys', @savebj, dictionary({'Andy', '^_^'}, {true, '-_-'}), ...
'{U<4>AndyTU<3>^_^SU<3>-_-}', 'debug', 1, 'usemap', 1);
Expand Down

0 comments on commit b482c8f

Please sign in to comment.