Mercurial > octave
diff test/parser.tst @ 28916:ec591c500fa4
maint: Use Octave convention of space after function name in test/.
* args.tst, testclass54995.m, myclass2.m, command.tst, complex.tst,
diag-perm.tst, eval-catch.tst, if.tst, index.tst, inline-fcn.tst, parser.tst,
test_script.m, try.tst:
Use Octave convention of space after function name.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 13 Oct 2020 19:56:23 -0700 |
parents | 96e7dc4c2214 |
children | 7854d5752dd2 |
line wrap: on
line diff
--- a/test/parser.tst Tue Oct 13 19:49:11 2020 -0700 +++ b/test/parser.tst Tue Oct 13 19:56:23 2020 -0700 @@ -104,7 +104,7 @@ %! assert (2 ^++a, 8); %! assert (a, 3); %! assert (a' ^2, 9); -%! assert (2 ^sin(0), 1); +%! assert (2 ^sin (0), 1); %! assert (-2 ^2, -4);; %! assert (2 ^+1 ^3, 8); %! assert (2 ^-1 ^3, 0.125); @@ -214,7 +214,7 @@ ## Level 13 (parentheses and indexing) %!test %! a.b1 = 2; -%! assert (a.(strcat('b','1'))++, 2); +%! assert (a.(strcat ('b','1'))++, 2); %! assert (a.b1, 3); %! b = {1 2 3 4 5}; %! assert (b{(a. b1 + 1)}, 4); @@ -335,7 +335,7 @@ #!error <vertical dimensions mismatch \(1x2 vs 1x1\)> z = [1, 2; 3] %!test -%! f = @(s,t=toeplitz(s),u=t(x=2:end-1,x)=32)t; +%! f = @(s,t=toeplitz (s),u=t(x=2:end-1,x)=32)t; %! assert (f (1), 1); %! assert (f (1, 2), 2);