aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/struct_initialization_runme.js
blob: 9ae8e791385f99cc3d852c5caa6c4e3524379e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var struct_initialization = require("struct_initialization");

if (struct_initialization.instanceC1.x != 10) {
    throw new Error;
}

if (struct_initialization.instanceD1.x != 10) {
    throw new Error;
}

if (struct_initialization.instanceD2.x != 20) {
    throw new Error;
}

if (struct_initialization.instanceD3.x != 30) {
    throw new Error;
}

if (struct_initialization.instanceE1.x != 1) {
    throw new Error;
}

if (struct_initialization.instanceF1.x != 1) {
    throw new Error;
}