Octave: error() must be called with an argument
This commit is contained in:
parent
01a2d5fe4c
commit
251ab662bf
77 changed files with 308 additions and 308 deletions
|
|
@ -2,26 +2,26 @@ inout
|
|||
|
||||
a = inout.AddOne1(1);
|
||||
if (a != 2)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
a = inout.AddOne3(1,1,1);
|
||||
if (a != [2,2,2])
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
a = inout.AddOne1p((1,1));
|
||||
if (a != (2,2))
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
a = inout.AddOne2p((1,1),1);
|
||||
if (a != [(2,2),2])
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
a = inout.AddOne3p(1,(1,1),1);
|
||||
if (a != [2,(2,2),2])
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue