comparison Resources/CodeGeneration/stonegentool_test.py @ 686:0d42bda615a8 am-dev

fix codegen tests
author Alain Mazy <alain@mazy.be>
date Thu, 16 May 2019 16:45:10 +0200
parents 84af39146e76
children 342f3e04bfa9
comparison
equal deleted inserted replaced
682:e8b83fe55a33 686:0d42bda615a8
206 ref = """ export class Message1 { 206 ref = """ export class Message1 {
207 a: number; 207 a: number;
208 b: string; 208 b: string;
209 c: EnumMonth0; 209 c: EnumMonth0;
210 d: boolean; 210 d: boolean;
211 e: number;
212 f: number;
213
211 public StoneSerialize(): string { 214 public StoneSerialize(): string {
212 let container: object = {}; 215 let container: object = {};
213 container['type'] = 'VsolStuff.Message1'; 216 container['type'] = 'VsolStuff.Message1';
214 container['value'] = this; 217 container['value'] = this;
215 return JSON.stringify(container); 218 return JSON.stringify(container);
333 export class Message1 { 336 export class Message1 {
334 a:number; 337 a:number;
335 b:string; 338 b:string;
336 c:EnumMonth0; 339 c:EnumMonth0;
337 d:boolean; 340 d:boolean;
341 e:number;
342 f:number;
338 343
339 constructor() { 344 constructor() {
340 this.a = new number(); 345 this.a = new number();
341 this.b = new string(); 346 this.b = new string();
342 this.c = new EnumMonth0(); 347 this.c = new EnumMonth0();
343 this.d = new boolean(); 348 this.d = new boolean();
349 this.e = new number();
350 this.f = new number();
344 } 351 }
345 352
346 public StoneSerialize(): string { 353 public StoneSerialize(): string {
347 let container: object = {}; 354 let container: object = {};
348 container['type'] = 'VsolMessages.Message1'; 355 container['type'] = 'VsolMessages.Message1';