PureYAML/Tests
Mihaela Mihaljevic 254905fe67 fix(parsing): auto-detect indentation 0 for a root block scalar
The block-scalar scanner used 0 as the 'indentation not yet detected'
sentinel and floored the auto-detected indent at 1, mirroring libyaml's
scan_block_scalar_breaks. A root-level block scalar (parent indent -1)
whose content starts in column 0 therefore detected no content, and the
first content line was reparsed as a fresh document, raising 'did not
find expected document start'.

Switch the sentinel to -1 so 0 is a representable detected indent, and
floor the auto-detected indent at parent indent + 1 (0 at the document
root) instead of 1. Nested block scalars keep a parent indent >= 0, so
their floor stays >= 1 and they are unaffected.

Surpasses libyaml on DK3J, FP8R, and M7A3. Port score 283 -> 286.
2026-06-24 18:36:17 +02:00
..
Fixtures fix(parsing): strip trailing fold from flow plain scalars 2026-06-24 02:01:08 +02:00
ACMEZephyrFixtureTests.swift
AnchoredIndentedNodeParsingTests.swift
ArbitraryAnyDecisionTests.swift
CanonicalEventConformanceTests.swift fix(parsing): auto-detect indentation 0 for a root block scalar 2026-06-24 18:36:17 +02:00
CodableCompatibilityFixtures.swift
CodableCompatibilityTests.swift
CodingTests.swift
CollectionCompatibilityFixtures.swift feat(parsing): run the whole library on the ported engine 2026-06-24 18:02:22 +02:00
ComplexMappingKeyCodableTests.swift
ComplexMappingKeyDumperTests.swift
ComplexMappingKeyParsingTests.swift feat(parsing): run the whole library on the ported engine 2026-06-24 18:02:22 +02:00
ComplexMappingKeyTestSupport.swift
ComplexMappingKeyValidationTests.swift
DiagnosticValidationReportTests.swift feat(parsing): route the event API through the ported libyaml engine 2026-06-24 17:32:29 +02:00
DocumentationExampleTests.swift
DownstreamDocumentFixtures.swift
DownstreamDocumentTests.swift
DumperEmptyCollectionTests.swift
DumperTests.swift fix(emitting): escape CRLF per unicode scalar in double-quoted output 2026-06-23 22:23:40 +02:00
EmitterCorpusTests.swift
EventStreamingParserTests.swift refactor(parsing): delete the hand-rolled parser, leaving the ported engine 2026-06-24 18:07:20 +02:00
JSONCompatibilityTests.swift
KeyedCodingTests.swift
LibYAMLCharacterClassTests.swift feat(parsing): port libyaml character-class predicates to Swift 2026-06-24 03:00:28 +02:00
LibYAMLIndentEngineTests.swift feat(parsing): begin faithful libyaml scanner port (indent engine) 2026-06-24 02:46:29 +02:00
LibYAMLParserTests.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAMLPortConformanceTests.swift fix(parsing): reject a tab where a token must start, add port differential 2026-06-24 17:12:36 +02:00
LibYAMLReaderTests.swift feat(parsing): port libyaml input reader to Swift 2026-06-24 03:04:08 +02:00
LibYAMLScannerFetchTests.swift feat(parsing): port libyaml directive scanner to Swift 2026-06-24 16:54:04 +02:00
LibYAMLSimpleKeyTests.swift feat(parsing): port libyaml simple-key mechanism to Swift 2026-06-24 02:55:07 +02:00
LiteralBlockEmissionFixtures.swift
MergeKeyCompatibilityTests.swift
ModelTests.swift
ParsingAliasTests.swift
ParsingCompatibilityTests.swift
ParsingErrorTests.swift feat(parsing): run the whole library on the ported engine 2026-06-24 18:02:22 +02:00
ParsingEventTests.swift feat(parsing): route the event API through the ported libyaml engine 2026-06-24 17:32:29 +02:00
ParsingIndentationRegressionTests.swift
ParsingMultilineScalarTests.swift fix(parsing): parse multi-line and block scalars at the document root 2026-06-23 22:56:33 +02:00
ParsingNestingLimitTests.swift fix(parsing): bound nesting depth so pathological input errors instead of crashing 2026-06-23 09:29:45 +02:00
ParsingTests.swift
PreflightScannerTests.swift
RealYAMLCorpusPropertyTests.swift
RealYAMLCorpusTests.swift
RealYAMLFixtureTests.swift
RoundTripDemonstrationTests.swift test: demonstrate yaml/json parsing and generation round-trips 2026-06-08 00:13:56 +02:00
ScalarCompatibilityFixtures.swift
StreamDumpingTests.swift
StreamParsingTests.swift feat(parsing): run the whole library on the ported engine 2026-06-24 18:02:22 +02:00
TaggedCompatibilityTests.swift
TaggedConstructorTests.swift
TestSupport.swift
UnkeyedCodingFixtures.swift
UnkeyedCodingTests.swift
UnkeyedEncodingFixtures.swift
UnkeyedFailureFixtures.swift
UnsupportedYAMLGapsFixtures.swift feat(parsing): run the whole library on the ported engine 2026-06-24 18:02:22 +02:00
ValidationBuiltinRuleTests.swift
ValidationCorpusFixtures.swift
ValidationCorpusSupport.swift
ValidationCorpusTests.swift
ValidationFailureFixtureTests.swift
ValidationModelTests.swift
ValidationModeTests.swift
ValidationReportTests.swift
ValidationTests.swift
ValidationTestSupport.swift
YAMLTestSuiteGapsTests.swift test(conformance): track all 402 suite cases; fix 3 regressions 2026-06-24 00:16:28 +02:00