Added tables to integration tests, tweaked a lot of comments

This commit is contained in:
2024-12-25 11:04:18 +11:00
parent 9e2cbb1f59
commit 9cb138a7d6
21 changed files with 22 additions and 78 deletions

View File

@@ -1,7 +1,8 @@
//TODO: functions don't work yet
//find the leap years
fn isLeapYear(n: int) {
if (n % 400) return true;
if (n % 100) return false;
if (n % 400 == 0) return true;
if (n % 100 == 0) return false;
return n % 4 == 0;
}