Fixed up testing etc
This commit is contained in:
17
tests/test_simpleObjectTest.krak
Normal file
17
tests/test_simpleObjectTest.krak
Normal file
@@ -0,0 +1,17 @@
|
||||
import io;
|
||||
|
||||
typedef FirstObject {
|
||||
|int| objectNum;
|
||||
|void| PrintSelf(|int| a) {
|
||||
io::print(objectNum);
|
||||
io::print(a);
|
||||
}
|
||||
};
|
||||
|
||||
|int| main() {
|
||||
|FirstObject| wooObject;
|
||||
wooObject.objectNum = 5;
|
||||
wooObject.PrintSelf(7);
|
||||
io::print("\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user