Skip to content

Commit b482c8f

Browse files
committed
[test] pass all tests on matlab R2010b
1 parent 2008934 commit b482c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/run_jsonlab_test.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function run_jsonlab_test(tests)
107107
'{"_MapData_":[[1.1,true],[1.2,"-_-"]]}', 'compact', 1, 'usemap', 1);
108108
end
109109
if (exist('dictionary'))
110-
test_jsonlab('dictionary with string keys', @savejson, dictionary(["Andy", "^_^"], {true, '-_-'}), ...
110+
test_jsonlab('dictionary with string keys', @savejson, dictionary([string('Andy'), string('^_^')], {true, '-_-'}), ...
111111
'{"Andy":true,"^_^":"-_-"}', 'compact', 1, 'usemap', 1);
112112
test_jsonlab('dictionary with cell keys', @savejson, dictionary({'Andy', '^_^'}, {true, '-_-'}), ...
113113
'{"_MapData_":[["Andy",true],["^_^","-_-"]]}', 'compact', 1, 'usemap', 1);
@@ -252,7 +252,7 @@ function run_jsonlab_test(tests)
252252
'{U<4>AndyTU<3>^_^SU<3>-_-}', 'debug', 1, 'usemap', 1);
253253
end
254254
if (exist('dictionary'))
255-
test_jsonlab('dictionary with string keys', @savebj, dictionary(["Andy", "^_^"], {true, '-_-'}), ...
255+
test_jsonlab('dictionary with string keys', @savebj, dictionary([string('Andy'), string('^_^')], {true, '-_-'}), ...
256256
'{U<4>AndyTU<3>^_^SU<3>-_-}', 'debug', 1, 'usemap', 1);
257257
test_jsonlab('dictionary with cell keys', @savebj, dictionary({'Andy', '^_^'}, {true, '-_-'}), ...
258258
'{U<4>AndyTU<3>^_^SU<3>-_-}', 'debug', 1, 'usemap', 1);

0 commit comments

Comments
 (0)