Add some tests.

This commit is contained in:
David Anderson 2014-06-20 00:08:04 -07:00
parent 12db52ee64
commit 1a340dec26
4 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,13 @@
native Float:CreateHandle(count);
native CloseHandle(Handle:handle);
methodmap Handle {
public Handle = CreateHandle;
public Close = CloseHandle;
};
public main() {
new Handle:handle = Handle(3);
handle.Close();
}

View File

@ -0,0 +1 @@
constructor function must return tag Handle

View File

@ -0,0 +1,8 @@
native X:Crab();
methodmap X {
public X = Crab;
public X = Crab;
}
public main() {
}

View File

@ -0,0 +1 @@
X was already defined on this methodmap