Fix previously unused access_change unit test runme file
This file had a wrong name and so wasn't used at all. Do use it now, after renaming it to the required name and fixing its compilation.
This commit is contained in:
parent
e8f9bdba80
commit
5219338160
2 changed files with 34 additions and 34 deletions
|
|
@ -1,34 +0,0 @@
|
||||||
#include "abstract_typedef2/abstract_change_wrap.h"
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
int main(int argc, const char *argv[]) {
|
|
||||||
Base *ba = Base_new();
|
|
||||||
Derived *d = Derived_new();
|
|
||||||
Bottom *bo = Bottom_new();
|
|
||||||
|
|
||||||
assert(Base_PublicProtectedPublic1(ba) == 0);
|
|
||||||
assert(Base_PublicProtectedPublic2(ba) == 0);
|
|
||||||
assert(Base_PublicProtectedPublic3(ba) == 0);
|
|
||||||
assert(Base_PublicProtectedPublic4(ba) == 0);
|
|
||||||
|
|
||||||
assert(Derived_WasProtected1(ba) == 0);
|
|
||||||
assert(Derived_WasProtected2(ba) == 0);
|
|
||||||
assert(Derived_WasProtected3(ba) == 0);
|
|
||||||
assert(Derived_WasProtected4(ba) == 0);
|
|
||||||
|
|
||||||
assert(Bottom_PublicProtectedPublic1(ba) == 0);
|
|
||||||
assert(Bottom_PublicProtectedPublic2(ba) == 0);
|
|
||||||
assert(Bottom_PublicProtectedPublic3(ba) == 0);
|
|
||||||
assert(Bottom_PublicProtectedPublic4(ba) == 0);
|
|
||||||
|
|
||||||
assert(Bottom_WasProtected1(ba) == 0);
|
|
||||||
assert(Bottom_WasProtected2(ba) == 0);
|
|
||||||
assert(Bottom_WasProtected3(ba) == 0);
|
|
||||||
assert(Bottom_WasProtected4(ba) == 0);
|
|
||||||
|
|
||||||
Base_delete(ba);
|
|
||||||
Derived_delete(d);
|
|
||||||
Bottom_delete(bo);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
34
Examples/test-suite/c/access_change_runme.c
Normal file
34
Examples/test-suite/c/access_change_runme.c
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
#include "access_change_wrap.h"
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
int main(int argc, const char *argv[]) {
|
||||||
|
access_change_BaseInt *ba = access_change_BaseInt_new();
|
||||||
|
access_change_DerivedInt *d = access_change_DerivedInt_new();
|
||||||
|
access_change_BottomInt *bo = access_change_BottomInt_new();
|
||||||
|
|
||||||
|
assert(access_change_BaseInt_PublicProtectedPublic1(ba) == 0);
|
||||||
|
assert(access_change_BaseInt_PublicProtectedPublic2(ba) == 0);
|
||||||
|
assert(access_change_BaseInt_PublicProtectedPublic3(ba) == 0);
|
||||||
|
assert(access_change_BaseInt_PublicProtectedPublic4(ba) == 0);
|
||||||
|
|
||||||
|
assert(access_change_DerivedInt_WasProtected1((access_change_DerivedInt*)ba) == 0);
|
||||||
|
assert(access_change_DerivedInt_WasProtected2((access_change_DerivedInt*)ba) == 0);
|
||||||
|
assert(access_change_DerivedInt_WasProtected3((access_change_DerivedInt*)ba) == 0);
|
||||||
|
assert(access_change_DerivedInt_WasProtected4((access_change_DerivedInt*)ba) == 0);
|
||||||
|
|
||||||
|
assert(access_change_BottomInt_PublicProtectedPublic1((access_change_BottomInt*)ba) == 0);
|
||||||
|
assert(access_change_BottomInt_PublicProtectedPublic2((access_change_BottomInt*)ba) == 0);
|
||||||
|
assert(access_change_BottomInt_PublicProtectedPublic3((access_change_BottomInt*)ba) == 0);
|
||||||
|
assert(access_change_BottomInt_PublicProtectedPublic4((access_change_BottomInt*)ba) == 0);
|
||||||
|
|
||||||
|
assert(access_change_BottomInt_WasProtected1((access_change_BottomInt*)ba) == 0);
|
||||||
|
assert(access_change_BottomInt_WasProtected2((access_change_BottomInt*)ba) == 0);
|
||||||
|
assert(access_change_BottomInt_WasProtected3((access_change_BottomInt*)ba) == 0);
|
||||||
|
assert(access_change_BottomInt_WasProtected4((access_change_BottomInt*)ba) == 0);
|
||||||
|
|
||||||
|
access_change_BaseInt_delete(ba);
|
||||||
|
access_change_DerivedInt_delete(d);
|
||||||
|
access_change_BottomInt_delete(bo);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue