Skip to content

Commit

Permalink
times: add a test for sympy-specific issue
Browse files Browse the repository at this point in the history
See Issue #1109.  This was covered by a doctest but its so basic we
should have it in the main test suite.
  • Loading branch information
cbm755 committed Apr 9, 2022
1 parent 32a51c2 commit 1703360
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inst/@sym/times.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Copyright (C) 2014, 2016, 2018-2019 Colin B. Macdonald
%% Copyright (C) 2014, 2016, 2018-2019, 2022 Colin B. Macdonald
%%
%% This file is part of OctSymPy.
%%
Expand Down Expand Up @@ -94,6 +94,12 @@
%! assert (isequal ( A.*D , D.*D ))
%! assert (isequal ( D.*A , D.*D ))

%!test
%! syms x
%! A = [1 x];
%! B = [2 3];
%! assert (isequal (A.*B, [2 3*x]))

%!test
%! % immutable test
%! A = sym([1 2]);
Expand Down

0 comments on commit 1703360

Please sign in to comment.