1 #ifndef SPECTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define SPECTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
13 TEST(bool ok_
): ok(ok_
) {}
14 TEST(const char *error_
): ok(false), error(error_
) {}
25 TEST
MappingScalarsToScalars();
28 TEST
MappingScalarsToSequences();
31 TEST
SequenceOfMappings();
34 TEST
SequenceOfSequences();
37 TEST
MappingOfMappings();
40 TEST
TwoDocumentsInAStream();
43 TEST
PlayByPlayFeed();
46 TEST
SingleDocumentWithTwoComments();
52 TEST
MappingBetweenSequences();
55 TEST
CompactNestedMapping();
58 TEST
InLiteralsNewlinesArePreserved();
61 TEST
InFoldedScalarsNewlinesBecomeSpaces();
64 TEST
FoldedNewlinesArePreservedForMoreIndentedAndBlankLines();
67 TEST
IndentationDeterminesScope();
73 TEST
MultiLineFlowScalars();
75 // TODO: 2.19 - 2.22 schema tags
78 TEST
VariousExplicitTags();
87 TEST
OrderedMappings();
95 // TODO: 5.1 - 5.2 BOM
98 TEST
BlockStructureIndicators();
101 TEST
FlowStructureIndicators();
104 TEST
CommentIndicator();
107 TEST
NodePropertyIndicators();
110 TEST
BlockScalarIndicators();
113 TEST
QuotedScalarIndicators();
115 // TODO: 5.9 directive
116 // TODO: 5.10 reserved indicator
119 TEST
LineBreakCharacters();
122 TEST
TabsAndSpaces();
125 TEST
EscapedCharacters();
128 TEST
InvalidEscapedCharacters();
131 TEST
IndentationSpaces();
134 TEST
IndentationIndicators();
137 TEST
SeparationSpaces();
155 TEST
SeparatedComment();
161 TEST
MultiLineComments();
164 TEST
SeparationSpacesII();
167 TEST
ReservedDirectives();
170 TEST
YAMLDirective();
173 TEST
InvalidRepeatedYAMLDirective();
179 TEST
InvalidRepeatedTagDirective();
182 TEST
PrimaryTagHandle();
185 TEST
SecondaryTagHandle();
191 TEST
LocalTagPrefix();
194 TEST
GlobalTagPrefix();
197 TEST
NodeProperties();
203 TEST
InvalidVerbatimTags();
206 TEST
TagShorthands();
209 TEST
InvalidTagShorthands();
212 TEST
NonSpecificTags();
224 TEST
CompletelyEmptyNodes();
227 TEST
DoubleQuotedImplicitKeys();
230 TEST
DoubleQuotedLineBreaks();
233 TEST
DoubleQuotedLines();
236 TEST
SingleQuotedCharacters();
239 TEST
SingleQuotedImplicitKeys();
242 TEST
SingleQuotedLines();
245 TEST
PlainCharacters();
248 TEST
PlainImplicitKeys();
257 TEST
FlowSequenceEntries();
263 TEST
FlowMappingEntries();
266 TEST
FlowMappingSeparateValues();
269 TEST
FlowMappingAdjacentValues();
272 TEST
SinglePairFlowMappings();
275 TEST
SinglePairExplicitEntry();
278 TEST
SinglePairImplicitEntries();
281 TEST
InvalidImplicitKeys();
290 TEST
BlockScalarHeader();
293 TEST
BlockIndentationHeader();
296 TEST
InvalidBlockScalarIndentationIndicators();
299 TEST
ChompingFinalLineBreak();
302 TEST
ChompingTrailingLines();
305 TEST
EmptyScalarChomping();
308 TEST
LiteralScalar();
311 TEST
LiteralContent();
320 TEST
MoreIndentedLines();
323 TEST
EmptySeparationLines();
326 TEST
FinalEmptyLines();
329 TEST
BlockSequence();
332 TEST
BlockSequenceEntryTypes();
335 TEST
BlockMappings();
338 TEST
ExplicitBlockMappingEntries();
341 TEST
ImplicitBlockMappingEntries();
344 TEST
CompactBlockMappings();
347 TEST
BlockNodeTypes();
350 TEST
BlockScalarNodes();
353 TEST
BlockCollectionNodes();
359 #endif // SPECTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66