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
|
|
@ -3,22 +3,22 @@ a = inplaceadd.A(7);
|
|||
|
||||
a += 5;
|
||||
if (a.val != 12)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
a -= 5;
|
||||
if a.val != 7:
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
a *= 2;
|
||||
|
||||
if (a.val != 14)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
a += a;
|
||||
if (a.val != 28)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue