Commit eca0083d authored by gsamain's avatar gsamain

Amend unit tests

parent 47d12706
cdef cypclass SomeMemory:
int a
SomeMemory __new__():
SomeMemory __new__(self):
o = new SomeMemory()
o.a = -2
return o
void* __new__(int a):
void* __new__(self, int a):
o = new SomeMemory()
o.a = a
return <void*> o
void __init__():
void __init__(self):
this.a += 1
void __init__(int a):
void __init__(self, int a):
pass
cdef int foo():
......
cdef cypclass SomeMemory:
int a
void __init__(int a):
void __init__(self, int a):
this.a = a
void __init__(int a, int b):
void __init__(self, int a, int b):
this.a = a*b
cpdef foo():
......
cdef cypclass SomeMemory:
int a
void __init__(int a, int b=1):
void __init__(self, int a, int b=1):
this.a = a*b
cpdef foo():
......
cdef cypclass SomeMemory:
int a
void __init__(int a):
void __init__(self, int a):
this.a = a
void __init__(int a, int b):
void __init__(self, int a, int b):
this.a = a*b
cdef cypclass SomeSubMemory(SomeMemory):
void __init__(int a, int b):
void __init__(self, int a, int b):
this.a = a+b
int getter():
int getter(self):
return this.a
cpdef foo():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment