From b482c8f0a4055925f5303da7b39fd0b03c428b70 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Wed, 27 Mar 2024 13:16:47 -0400 Subject: [PATCH] [test] pass all tests on matlab R2010b --- test/run_jsonlab_test.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run_jsonlab_test.m b/test/run_jsonlab_test.m index 3906d3a..d9e5bb0 100644 --- a/test/run_jsonlab_test.m +++ b/test/run_jsonlab_test.m @@ -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); @@ -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);