summaryrefslogtreecommitdiff
path: root/modules/symbolic/tests/unit_tests/mulf.tst
blob: 669d805127bf1caa8fd02c88cb04b7714b1cc981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) ????-2008 - INRIA
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================

// <-- CLI SHELL MODE -->


if mulf('1','1')<>'1' then pause,end
if mulf('1','0')<>'0' then pause,end
if mulf('0','1')<>'0' then pause,end
if mulf('0','0')<>'0' then pause,end
if mulf('1','-1')<>'-1' then pause,end
if mulf('-1','1')<>'-1' then pause,end
if mulf('-1','0')<>'0' then pause,end
if mulf('0','-1')<>'0' then pause,end

if mulf('1','a')<>'a' then pause,end
if mulf('a','1')<>'a' then pause,end
if mulf('a','0')<>'0' then pause,end
if mulf('0','a')<>'0' then pause,end
if mulf('a','-1')<>'-a' then pause,end
if mulf('-1','a')<>'-a' then pause,end
if mulf('a','b')<>'a*b' then pause,end
if mulf('a+b','c')<>'(a+b)*c' then pause,end
if mulf('c','a+b')<>'c*(a+b)' then pause,end
if mulf('a+b','a+b')<>'(a+b)*(a+b)' then pause,end
if mulf('2*a+b','a-b')<>'(2*a+b)*(a-b)' then pause,end