PageRenderTime 16ms CodeModel.GetById 2ms app.highlight 10ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
Objective C | 30 lines | 27 code | 3 blank | 0 comment | 16 complexity | 9ab3e76f4ca820c2edac52f1089eb1be MD5 | raw file
 1overload_extendc
 2
 3f = overload_extendc.Foo();
 4if (f.test(3) != 1)
 5    error
 6endif
 7if (f.test("hello") != 2)
 8    error
 9endif
10if (f.test(3.5,2.5) != 3)
11    error
12endif
13if (f.test("hello",20) != 1020)
14    error
15endif
16if (f.test("hello",20,100) != 120)
17    error
18endif
19
20# C default args
21if (f.test(f) != 30)
22    error
23endif
24if (f.test(f,100) != 120)
25    error
26endif
27if (f.test(f,100,200) != 300)
28    error
29endif
30