MCPcopy Create free account
hub / github.com/boostorg/json / testTrailingCommas

Method testTrailingCommas

test/stream_parser.cpp:1091–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089 }
1090
1091 void
1092 testTrailingCommas()
1093 {
1094 parse_options enabled;
1095 enabled.allow_trailing_commas = true;
1096
1097 grind("[1,]", enabled);
1098 grind("[1, 2,]", enabled);
1099 grind("{\"a\": 1,}", enabled);
1100 grind("{\"a\": 1, \"b\": 2,}", enabled);
1101 }
1102
1103 void
1104 testComments()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected