Skip to content

Commit

Permalink
snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanaburayyan committed Sep 2, 2023
1 parent 8b5291f commit 43f0b28
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ module.exports = function(stdStruct) {
m2: {
type: "object",
properties: {
data: { type: "string" },
val: { type: "string" },
},
required: [
"data",
"val",
]
},
},
Expand Down Expand Up @@ -768,10 +768,10 @@ class $Root extends $stdlib.std.Resource {
const jj1 = ({"data": ({"val": 10})});
const externalBar = (externalStructs_MyOtherStruct.fromJson(jj1));
{((cond) => {if (!cond) throw new Error("assertion failed: externalBar.data.val == 10")})((((a,b) => { try { return require('assert').deepStrictEqual(a,b) === undefined; } catch { return false; } })(externalBar.data.val,10)))};
const jMyStruct = ({"m1": ({"val": 10}),"m2": ({"data": "10"})});
const jMyStruct = ({"m1": ({"val": 10}),"m2": ({"val": "10"})});
const myStruct = (MyStruct.fromJson(jMyStruct));
{((cond) => {if (!cond) throw new Error("assertion failed: myStruct.m1.val == 10")})((((a,b) => { try { return require('assert').deepStrictEqual(a,b) === undefined; } catch { return false; } })(myStruct.m1.val,10)))};
{((cond) => {if (!cond) throw new Error("assertion failed: myStruct.m2.data == \"10\"")})((((a,b) => { try { return require('assert').deepStrictEqual(a,b) === undefined; } catch { return false; } })(myStruct.m2.data,"10")))};
{((cond) => {if (!cond) throw new Error("assertion failed: myStruct.m2.val == \"10\"")})((((a,b) => { try { return require('assert').deepStrictEqual(a,b) === undefined; } catch { return false; } })(myStruct.m2.val,"10")))};
}
}
const $App = $stdlib.core.App.for(process.env.WING_TARGET);
Expand Down

0 comments on commit 43f0b28

Please sign in to comment.