# HG changeset patch # User Arun Giridhar # Date 1680379109 14400 # Node ID 90f21a2c471f1440af322414b23464e95ab9f0ae # Parent 1634ab59e8acf072e50a676b3417b4d8947a5a82 assert.m: Fix 2D character matrix equality (bug #63988) * assert.m: Previously, padding with single quotes was working only for individual strings, not for character matrices. This edit allows 2D character matrices in assert statements. diff -r 1634ab59e8ac -r 90f21a2c471f scripts/testfun/assert.m --- a/scripts/testfun/assert.m Sat Apr 01 11:48:26 2023 -0400 +++ b/scripts/testfun/assert.m Sat Apr 01 15:58:29 2023 -0400 @@ -138,8 +138,10 @@ endif elseif (! strcmp (cond, expected)) err.index{end+1} = "[]"; - err.observed{end+1} = ["'" cond "'"]; - err.expected{end+1} = ["'" expected "'"]; + rr = repmat ("'", rows (cond), 1); + err.observed{end+1} = [rr cond rr]; + rr = repmat ("'", rows (expected), 1); + err.expected{end+1} = [rr expected rr]; err.reason{end+1} = "Strings don't match"; endif