feat: add new tests

This commit is contained in:
samsonium
2026-10-21 04:00:03 +03:00
parent 80f07dc7c6
commit e49ebba346
13 changed files with 145 additions and 99 deletions
+25
View File
@@ -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);
}