summaryrefslogtreecommitdiff
path: root/Examples/test-suite/matlab/constover_runme.m
blob: e43af5411fb203eea5f08cb8cb32dbcba181cf48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
p = constover.test('test');
if (~strcmp(p,'test'))
    error('test failed~')
end

p = constover.test_pconst('test');
if (~strcmp(p,'test_pconst'))
    error('test_pconst failed~')
end

f = constover.Foo();
p = f.test('test');
if (~strcmp(p,'test'))
    error('member-test failed~')
end

p = f.test_pconst('test');
if (~strcmp(p,'test_pconst'))
    error('member-test_pconst failed~')
end

p = f.test_constm('test');
if (~strcmp(p,'test_constmethod'))
    error('member-test_constm failed~')
end

p = f.test_pconstm('test');
if (~strcmp(p,'test_pconstmethod'))
    error('member-test_pconstm failed~')
end