Browse Source

Check switch block.

pull/50/head
Rafal Kupiec 3 years ago
parent
commit
725b60cb88
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
  1. 20
      tests/switch_block.aer
  2. 2
      tests/switch_block.exp

20
tests/switch_block.aer

@ -0,0 +1,20 @@
class Program {
void main() {
int $a = 1;
switch($a) {
case 0:
print("very bad\n");
break;
case 1:
print("very good\n");
case 2:
print("good\n");
break;
default:
print("bad");
break;
}
}
}

2
tests/switch_block.exp

@ -0,0 +1,2 @@
very good
good
Loading…
Cancel
Save