Lines Matching refs:res
48 let res = a.assemble(); variable
49 assert.equal(res[0], 0x07230203);
62 let res = a.assemble();
64 assert.lengthOf(res, 11);
65 assert.equal(res[5], (6 /* word count */ << 16) | 16 /* opcode */);
66 assert.equal(res[6], 1 /* %main */);
67 assert.equal(res[7], 17 /* LocalSize */);
68 assert.equal(res[8], 2);
69 assert.equal(res[9], 3);
70 assert.equal(res[10], 4);
83 let res = a.assemble();
85 assert.lengthOf(res, 12);
86 assert.equal(res[8], (4 /* word count */ << 16) | 43 /* opcode */);
87 assert.equal(res[9], 1 /* %float */);
88 assert.equal(res[10], 2 /* %float */);
89 assert.equal(res[11], 0x3ecccccd /* 0.400000006 */);
102 let res = a.assemble();
104 assert.lengthOf(res, 9);
105 assert.equal(res[5], (4 /* word count */ << 16) | 5 /* opcode */);
106 assert.equal(res[6], 1 /* %mains */);
107 assert.equal(res[7], 0x64636261 /* food */);
108 assert.equal(res[8], 0x00000000 /* null byte */);
120 let res = a.assemble();
122 assert.lengthOf(res, 9);
123 assert.equal(res[5], (4 /* word count */ << 16) | 5 /* opcode */);
124 assert.equal(res[6], 1 /* %mains */);
125 assert.equal(res[7], 0x64636261 /* abcd */);
126 assert.equal(res[8], 0x00000065 /* e */);
138 let res = a.assemble();
140 assert.lengthOf(res, 9);
141 assert.equal(res[5], (4 /* word count */ << 16) | 5 /* opcode */);
142 assert.equal(res[6], 1 /* %mains */);
143 assert.equal(res[7], 0x64636261 /* abcd */);
144 assert.equal(res[8], 0x00006665 /* ef */);
156 let res = a.assemble();
158 assert.lengthOf(res, 9);
159 assert.equal(res[5], (4 /* word count */ << 16) | 5 /* opcode */);
160 assert.equal(res[6], 1 /* %mains */);
161 assert.equal(res[7], 0x64636261 /* abcd */);
162 assert.equal(res[8], 0x00676665 /* efg */);