scope test_structure_skipDefaultValues sclass #X { settable int x = 1; settable bool b = true; settable bool c = false; settable L l = ll(1); settable S s; } svoid testCase(S s, O o) { new structure_Data d; d.skipDefaultValues(true); S x = shortClassName(X); s = migrateClassesInStructureText(s, "X", X); assertEqualsVerbose(s, structure(o, d)); } svoid test_structure_skipDefaultValues() { testCase("X", new X()); testCase("X(b=f)", new X().b(false)); testCase("X(c=t)", new X().c(true)); testCase("X(l=null)", new X().l(null)); testCase([[X(s="hello")]], new X().s("hello")); testCase("array{}", new O[] {}); }