Mercurial > hg > orthanc-stone
diff Resources/CodeGeneration/playground3.ts @ 491:8e7e151ef472 bgo-commands-codegen
Unit tests pass for enum generation
author | bgo-osimis |
---|---|
date | Wed, 20 Feb 2019 20:51:30 +0100 |
parents | 6470248790db |
children |
line wrap: on
line diff
--- a/Resources/CodeGeneration/playground3.ts Mon Feb 18 15:38:05 2019 +0100 +++ b/Resources/CodeGeneration/playground3.ts Wed Feb 20 20:51:30 2019 +0100 @@ -3,7 +3,7 @@ 12345678901234567890123456789012345678901234567890123456789012345678901234567890 */ -namespace VsolStuff { +namespace VsolStuff222 { export enum EnumMonth0 { January, February, @@ -17,7 +17,7 @@ d: boolean; public StoneSerialize(): string { let container: object = {}; - container['type'] = 'Message1'; + container['type'] = 'VsolStuff.Message1'; container['value'] = this; return JSON.stringify(container); } @@ -32,7 +32,7 @@ public StoneSerialize(): string { let container: object = {}; - container['type'] = 'Message1'; + container['type'] = 'VsolStuff.Message2'; container['value'] = this; return JSON.stringify(container); } @@ -69,7 +69,7 @@ msg2_0.tata.push(msg1_0); msg2_0.tata.push(msg1_1); msg2_0.tutu.push("Mercadet"); - msg2_0.tutu.push("Poisson"); + msg2_0.tutu.push("Poisson");ing msg2_0.titi["44"] = "key 44"; msg2_0.titi["45"] = "key 45"; msg2_0.lulu["54"] = msg1_1;