PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/inout_runme.m

#
Objective C | 27 lines | 21 code | 6 blank | 0 comment | 10 complexity | 32bf3e0f8f30b5ecee92e9b0b1c9943d MD5 | raw file
 1inout
 2
 3a = inout.AddOne1(1);
 4if (a != 2)
 5  error
 6endif
 7
 8a = inout.AddOne3(1,1,1);
 9if (a != [2,2,2])
10  error
11endif
12
13a = inout.AddOne1p((1,1));
14if (a != (2,2))
15  error
16endif
17
18a = inout.AddOne2p((1,1),1);
19if (a != [(2,2),2])
20  error
21endif
22
23a = inout.AddOne3p(1,(1,1),1);
24if (a != [2,(2,2),2])
25  error
26endif
27