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

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

#
Objective C | 27 lines | 20 code | 7 blank | 0 comment | 11 complexity | 429791fc7eb5de65fc21ac3ead4dbc14 MD5 | raw file
 1using_extend
 2
 3f = FooBar();
 4if (f.blah(3) != 3)
 5    error("blah(int)")
 6endif
 7
 8if (f.blah(3.5) != 3.5)
 9    error("blah(double)")
10endif
11
12if (!strcmp(f.blah("hello"),"hello"))
13    error("blah(char *)")
14endif
15
16if (f.blah(3,4) != 7)
17    error("blah(int,int)")
18endif
19
20if (f.blah(3.5,7.5) != (3.5+7.5))
21    error("blah(double,double)")
22endif
23
24
25if (f.duh(3) != 3)
26    error("duh(int)")
27endif