feat: add new tests
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
class Point
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
|
||||
fn move(int dx, int dy)
|
||||
{
|
||||
this.x = this.x + dx;
|
||||
this.y = this.y + dy;
|
||||
}
|
||||
}
|
||||
|
||||
Point point = new Point;
|
||||
point.x = 1;
|
||||
point.y = 2;
|
||||
point.move(9, 8);
|
||||
|
||||
if (point.x == 10 && point.y == 10)
|
||||
printline("class method passed");
|
||||
else
|
||||
{
|
||||
printline("class method failed");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user