Update tests to follow new syntax.
Some checks reported errors
The build has failed.

This commit is contained in:
2019-03-17 19:48:52 +01:00
parent c26f8cd777
commit ff73690111
14 changed files with 43 additions and 43 deletions

View File

@@ -1,13 +1,13 @@
class Program {
function factorial(int $num) {
int factorial(int $num) {
if($num == 0 || $num == 1)
return 1;
else
return $num * $this->factorial($num - 1);
}
function main() {
void main() {
int $num = 7;
print('Factorial of ', $num, ' is ', $this->factorial($num), '.');
}