diff --git a/bindings/matlab/test_binsparse_write_ssmc_problem.m b/bindings/matlab/test_binsparse_write_ssmc_problem.m index b3d3f39..1f97af0 100644 --- a/bindings/matlab/test_binsparse_write_ssmc_problem.m +++ b/bindings/matlab/test_binsparse_write_ssmc_problem.m @@ -155,7 +155,7 @@ function check_dense_group(filename, group, expected) function check_vector_shape(filename, group, expected) json = h5readatt(filename, ['/' group], 'binsparse'); - pattern = sprintf('"shape"\s*:\s*\[\s*%d\s*\]', expected); + pattern = sprintf('"shape"\\s*:\\s*\\[\\s*%d\\s*\\]', expected); assert(~isempty(regexp(json, pattern, 'once')), ... 'Group "%s" does not have a one-dimensional shape', group); end @@ -196,13 +196,13 @@ function expect_error(action, identifier) case 'COO' rows = double(bsp.indices_0) + 1; cols = double(bsp.indices_1) + 1; - vals = bsp.values; + vals = double (bsp.values) ; mat = sparse(rows, cols, vals, bsp.nrows, bsp.ncols); mat = full(mat); case 'CSC' colptr = double(bsp.pointers_to_1); rowind = double(bsp.indices_1); - vals = bsp.values; + vals = double (bsp.values) ; ncols = bsp.ncols; nrows = bsp.nrows; rows = []; @@ -223,7 +223,7 @@ function expect_error(action, identifier) case 'CSR' rowptr = double(bsp.pointers_to_1); colind = double(bsp.indices_1); - vals = bsp.values; + vals = double (bsp.values) ; nrows = bsp.nrows; ncols = bsp.ncols; rows = [];