From d50dfdd14b52f8001c66cabab240b39331f1e71a Mon Sep 17 00:00:00 2001 From: Tim Davis Date: Mon, 3 Aug 2026 11:56:00 -0500 Subject: [PATCH 1/2] test ssmc: cast to double --- bindings/matlab/test_binsparse_write_ssmc_problem.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/matlab/test_binsparse_write_ssmc_problem.m b/bindings/matlab/test_binsparse_write_ssmc_problem.m index b3d3f39..4ae157b 100644 --- a/bindings/matlab/test_binsparse_write_ssmc_problem.m +++ b/bindings/matlab/test_binsparse_write_ssmc_problem.m @@ -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 = []; From 4339a12743d2164a3030892d24971be9aa70dc5a Mon Sep 17 00:00:00 2001 From: Tim Davis Date: Mon, 3 Aug 2026 12:04:08 -0500 Subject: [PATCH 2/2] escape \s --- bindings/matlab/test_binsparse_write_ssmc_problem.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/matlab/test_binsparse_write_ssmc_problem.m b/bindings/matlab/test_binsparse_write_ssmc_problem.m index 4ae157b..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