Skip to content

Commit 6f09969

Browse files
committed
[ci] octave string + -1 yields 255 while matlab is 0
1 parent da0bdee commit 6f09969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/run_jsonlab_test.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function run_jsonlab_test(tests)
247247
test_jsonlab('single byte', @savebj, loadbj(['B' 65]), 'C<65>', 'debug', 1);
248248
test_jsonlab('byte 1D vector', @savebj, loadbj(['[$B#U' 3 61 62 65]), 'SU<3>=>A', 'debug', 1);
249249
test_jsonlab('optimized byte 1D vector', @savebj, loadbj(['[$B#[$U#U' 1 4 61 62 65 66]), 'SU<4>=>AB', 'debug', 1);
250-
test_jsonlab('object with byte key', @savebj, loadbj(['{' 'i' 3 'lat' 'B' -1 'i' 4 'long' 'U' 2 'i' 3 'alt' 'B' 210 '}']), '{U<3>latC<0>U<4>longU<2>U<3>altC<210>}', 'debug', 1);
250+
test_jsonlab('object with byte key', @savebj, loadbj(['{' 'i' 3 'lat' 'B' 0 'i' 4 'long' 'U' 2 'i' 3 'alt' 'B' 210 '}']), '{U<3>latC<0>U<4>longU<2>U<3>altC<210>}', 'debug', 1);
251251
test_jsonlab('optimized object with byte key', @savebj, loadbj(['{$C#U' 3 'i' 3 'lat' 10 'i' 4 'long' 9 'i' 3 'alt' 240]), '{U<3>latC<10>U<4>longC<9>U<3>altC<240>}', 'debug', 1);
252252

253253
if (exist('OCTAVE_VERSION', 'builtin') ~= 0)

0 commit comments

Comments
 (0)