Add: Test for nested struct formatting
This commit is contained in:
parent
05db8ae8fa
commit
b3946b7525
|
@ -1,6 +1,9 @@
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
S s = {
|
S s1 = {a: 3};
|
||||||
|
S s2 = {a: 3, b: "test string"};
|
||||||
|
S s3 = {a: 3, b: "test string", c: {x: 3.14, y: 3 + 4}};
|
||||||
|
T t = {
|
||||||
someStructMember1: 2, someStructMember2: 42, someStructMember3: null, // foobar
|
someStructMember1: 2, someStructMember2: 42, someStructMember3: null, // foobar
|
||||||
someOtherMember1: objA, someOtherMember2: objB, someOtherMember3: 0,
|
someOtherMember1: objA, someOtherMember2: objB, someOtherMember3: 0,
|
||||||
somethingMore: null, someFlagInThisStruct: -1
|
somethingMore: null, someFlagInThisStruct: -1
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
void main() {
|
void main() {
|
||||||
S s = {
|
S s1 = { a: 3 };
|
||||||
|
S s2 = { a: 3, b:"test string" };
|
||||||
|
S s3 = { a: 3, b:"test string", c: {x: 3.14, y: 3 + 4} };
|
||||||
|
T t = {
|
||||||
someStructMember1: 2,
|
someStructMember1: 2,
|
||||||
someStructMember2: 42,
|
someStructMember2: 42,
|
||||||
someStructMember3: null, // foobar
|
someStructMember3: null, // foobar
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
void main() {
|
void main() {
|
||||||
S s = {
|
S s1 = {a: 3};
|
||||||
|
S s2 = {a: 3, b: "test string"};
|
||||||
|
S s3 = {a: 3, b: "test string", c: {x: 3.14, y: 3 + 4}};
|
||||||
|
T t = {
|
||||||
someStructMember1: 2, someStructMember2: 42, someStructMember3: null, // foobar
|
someStructMember1: 2, someStructMember2: 42, someStructMember3: null, // foobar
|
||||||
someOtherMember1: objA, someOtherMember2: objB, someOtherMember3: 0,
|
someOtherMember1: objA, someOtherMember2: objB, someOtherMember3: 0,
|
||||||
somethingMore: null, someFlagInThisStruct: -1
|
somethingMore: null, someFlagInThisStruct: -1
|
||||||
|
|
Loading…
Reference in New Issue