Browse Source

Do not use broken foreach() loop in this test.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
a7606864fa
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tests/brainfuck_interpreter.aer

+ 3
- 3
tests/brainfuck_interpreter.aer View File

@ -94,9 +94,9 @@ class Program {
}
sort($files);
unset($file);
foreach($files as $file) {
print('Executing "' + $file + '"' + "\n");
$code = file_get_contents('tests/data/brainfuck/' + $file);
for(int $n = 0; $n < sizeof($files); $n++) {
print('Executing "' + $files[$n] + '"' + "\n");
$code = file_get_contents('tests/data/brainfuck/' + $files[$n]);
$bf = new Brainfuck($code, $input);
$bf->run();
print("\n");

Loading…
Cancel
Save