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,29 +2,29 @@ overload_extend2
|
|||
|
||||
f = overload_extend2.Foo();
|
||||
if (f.test(3) != 1)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
if (f.test("hello") != 2)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
if (f.test(3.5,2.5) != 3)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
if (f.test("hello",20) != 1020)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
if (f.test("hello",20,100) != 120)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
# C default args
|
||||
if (f.test(f) != 30)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
if (f.test(f,100) != 120)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
if (f.test(f,100,200) != 300)
|
||||
error
|
||||
error("failed");
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue