Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * Embedded "if/else" constructions are allowed
6 *
7 * @path ch12/12.5/S12.5_A12_T3.js
8 * @description Using embedded "if/else" into "if" without "else" constructions
9 */
11 //CHECK# 1
12 if(true)
13 if (false)
14 $ERROR('#1.1: At embedded "if/else" constructions engine must select right branches');
15 else
16 ;
18 //CHECK# 2
19 if(true)
20 if (true)
21 ;
22 else
23 $ERROR('#2.1: At embedded "if/else" constructions engine must select right branches');
25 //CHECK# 3
26 if(false)
27 if (true)
28 $ERROR('#3.1: At embedded "if/else" constructions engine must select right branches');
29 else
30 $ERROR('#3.2: At embedded "if/else" constructions engine must select right branches');
32 //CHECK# 4
33 if(false)
34 if (true)
35 $ERROR('#4.1: At embedded "if/else" constructions engine must select right branches');
36 else
37 $ERROR('#4.2: At embedded "if/else" constructions engine must select right branches');