Browse Source

Test complex expressions one more time.

pull/50/head
Rafal Kupiec 2 years ago
parent
commit
493fcd0e92
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
2 changed files with 28 additions and 0 deletions
  1. +16
    -0
      tests/complex_expressions2.aer
  2. +12
    -0
      tests/complex_expressions2.exp

+ 16
- 0
tests/complex_expressions2.aer View File

@ -0,0 +1,16 @@
class Program {
void test(int $a = (int(int $a, int $b, int $c){return $a+$b+$c;})(14, 10+2, 15), int $b = 0, int $c = 98) {
print($a + PHP_EOL);
print($b + PHP_EOL);
print($c + PHP_EOL);
}
void main() {
$this->test();
$this->test(512);
$this->test(1024, 32);
$this->test(1000, 2000, 4000);
}
}

+ 12
- 0
tests/complex_expressions2.exp View File

@ -0,0 +1,12 @@
41
0
98
512
0
98
1024
32
98
1000
2000
4000

Loading…
Cancel
Save