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,6 +1,6 @@
class Program {
private function num2Roman(int $num) {
private string num2Roman(int $num) {
int $n = intval($num);
string $result = '';
int[] $lookup = array('M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400,
@@ -16,7 +16,7 @@ class Program {
return $result;
}
public function main() {
public void main() {
print(' 7 => ' + $this->num2Roman(7) + "\n");
print(' 9 => ' + $this->num2Roman(9) + "\n");
print(' 11 => ' + $this->num2Roman(11) + "\n");