diff options
author | Swati Sharma <itawswati@gmail.com> | 2012-07-25 09:01:08 +0000 |
---|---|---|
committer | Swati Sharma <itawswati@gmail.com> | 2012-07-25 09:01:08 +0000 |
commit | c3caae74d52913d7ec27f7713837045ab5ce73b1 (patch) | |
tree | 48f0193715b132af0e5d9ffdeb60743a27d61b48 | |
parent | 619cb205ce0d41eaf3869c467cff4de7118c710e (diff) | |
download | swig-c3caae74d52913d7ec27f7713837045ab5ce73b1.tar.gz |
Changes in testcases with respect to the Refactored Objective C module code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-objc@13399 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Examples/test-suite/objc/class_ignore_runme.m | 2 | ||||
-rw-r--r-- | Examples/test-suite/objc/clientdata_prop_a_runme.m | 6 | ||||
-rw-r--r-- | Examples/test-suite/objc/extern_declaration_runme.m | 6 | ||||
-rw-r--r-- | Examples/test-suite/objc/inherit_missing_runme.m | 4 | ||||
-rw-r--r-- | Examples/test-suite/objc/null_pointer_runme.m | 4 | ||||
-rw-r--r-- | Examples/test-suite/objc/sneaky1_runme.m | 8 | ||||
-rw-r--r-- | Examples/test-suite/objc/typedef_reference_runme.m | 8 | ||||
-rw-r--r-- | Examples/test-suite/objc/using1_runme.m | 2 | ||||
-rw-r--r-- | Examples/test-suite/objc/using2_runme.m | 2 |
9 files changed, 21 insertions, 21 deletions
diff --git a/Examples/test-suite/objc/class_ignore_runme.m b/Examples/test-suite/objc/class_ignore_runme.m index e6647effa..43908c350 100644 --- a/Examples/test-suite/objc/class_ignore_runme.m +++ b/Examples/test-suite/objc/class_ignore_runme.m @@ -4,7 +4,7 @@ int main(int argc, char* argv[]) { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; Bar *bar =[[Bar alloc]init]; -NSString *t= do_blah(bar); +NSString *t= ObjcDo_blah(bar); assert([t isEqualToString:@"Bar::blah"]); [bar release]; diff --git a/Examples/test-suite/objc/clientdata_prop_a_runme.m b/Examples/test-suite/objc/clientdata_prop_a_runme.m index 81c287880..aa8f69725 100644 --- a/Examples/test-suite/objc/clientdata_prop_a_runme.m +++ b/Examples/test-suite/objc/clientdata_prop_a_runme.m @@ -2,9 +2,9 @@ int main(int argc,char* argv[]) { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; -A *a=new_tA(); -test_tA(a); -test_A(a); +A *a=ObjcNew_tA(); +ObjcTest_tA(a); +ObjcTest_A(a); [pool drain]; return 0; diff --git a/Examples/test-suite/objc/extern_declaration_runme.m b/Examples/test-suite/objc/extern_declaration_runme.m index 434e2412f..b76d7f255 100644 --- a/Examples/test-suite/objc/extern_declaration_runme.m +++ b/Examples/test-suite/objc/extern_declaration_runme.m @@ -2,11 +2,11 @@ int main(int argc,char *argv[]) { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; -if(externimport(100) !=100) +if(ObjcExternimport(100) !=100) NSLog(@"extern import called"); -if(externexport(200) !=200) +if(ObjcExternexport(200) !=200) NSLog(@"externexport failed"); -if(externstdcall(300) !=300) +if(ObjcExternstdcall(300) !=300) NSLog(@"externstdcall failed"); [pool drain]; diff --git a/Examples/test-suite/objc/inherit_missing_runme.m b/Examples/test-suite/objc/inherit_missing_runme.m index 13950d384..61505d585 100644 --- a/Examples/test-suite/objc/inherit_missing_runme.m +++ b/Examples/test-suite/objc/inherit_missing_runme.m @@ -3,10 +3,10 @@ int main(int argc,char* argv[]) { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; -SWIGTYPE_p_Foo *a=new_Foo(); +SWIGTYPE_p_Foo *a=ObjcNew_Foo(); Bar *b=[[Bar alloc]init]; Spam *c=[[Spam alloc]init]; -NSString *t=do_blah(a); +NSString *t=ObjcDo_blah(a); assert([t isEqualToString:@"Foo::blah"]); t=[b blah]; diff --git a/Examples/test-suite/objc/null_pointer_runme.m b/Examples/test-suite/objc/null_pointer_runme.m index 837d69859..dd9596d90 100644 --- a/Examples/test-suite/objc/null_pointer_runme.m +++ b/Examples/test-suite/objc/null_pointer_runme.m @@ -4,8 +4,8 @@ int main(int argc,char* argv[]) { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; A *a=[[A alloc]init]; -assert(func(a) == NO); -a=getnull(); +assert(ObjcFunc(a) == NO); +a=ObjcGetnull(); assert(a == 0); [a release]; diff --git a/Examples/test-suite/objc/sneaky1_runme.m b/Examples/test-suite/objc/sneaky1_runme.m index 4b9293cc8..4c0182885 100644 --- a/Examples/test-suite/objc/sneaky1_runme.m +++ b/Examples/test-suite/objc/sneaky1_runme.m @@ -3,13 +3,13 @@ int main(int argc,char *argv[]) { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; -if(add(30,2) !=32) +if(ObjcAdd(30,2) !=32) NSLog(@"add test failed"); -if(subtract(20,2) !=18) +if(ObjcSubtract(20,2) !=18) NSLog(@"subtract test failed"); -if(mul(20,2) !=40) +if(ObjcMul(20,2) !=40) NSLog(@"mul test failed"); -if(divide(20,2) !=10) +if(ObjcDivide(20,2) !=10) NSLog(@"div test failed"); [pool drain]; diff --git a/Examples/test-suite/objc/typedef_reference_runme.m b/Examples/test-suite/objc/typedef_reference_runme.m index 316043b3b..beee0641a 100644 --- a/Examples/test-suite/objc/typedef_reference_runme.m +++ b/Examples/test-suite/objc/typedef_reference_runme.m @@ -4,10 +4,10 @@ int main(int argc,char* argv[]) { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; -SWIGTYPE_p_int *int2=copy_intp(2); -assert(somefunc(int2) ==2); -SWIGTYPE_p_int *int3=copy_intp(3); -assert(somefunc(int3) ==3); +int *int2=ObjcCopy_intp(2); +assert(ObjcSomefunc(int2) ==2); +int *int3=ObjcCopy_intp(3); +assert(ObjcSomefunc(int3) ==3); [pool drain]; return 0; } diff --git a/Examples/test-suite/objc/using1_runme.m b/Examples/test-suite/objc/using1_runme.m index 1dee5322a..d5e2473b4 100644 --- a/Examples/test-suite/objc/using1_runme.m +++ b/Examples/test-suite/objc/using1_runme.m @@ -6,7 +6,7 @@ int main(int argc,char* argv[]) NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; _FooImpl *fmpl=[[_FooImpl alloc]init]; assert([fmpl isMemberOfClass: [_FooImpl class]] == YES); -assert(spam(3)==3); +assert(ObjcSpam(3)==3); [pool drain]; return 0; } diff --git a/Examples/test-suite/objc/using2_runme.m b/Examples/test-suite/objc/using2_runme.m index a52786910..fa1032db9 100644 --- a/Examples/test-suite/objc/using2_runme.m +++ b/Examples/test-suite/objc/using2_runme.m @@ -3,7 +3,7 @@ int main(int argc,char* argv[]) { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init]; -assert(spam(37)==37); +assert(ObjcSpam(37)==37); [pool drain]; return 0; } |