1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// =====================================================================================
// File: document_marker_validation_tests.rs
// Location: library/src/internal_tests/
// -------------------------------------------------------------------------------------
// Purpose:
// Internal tests for validation of YAML document marker usage in the babbel_yaml crate.
// These tests ensure that document start markers (---) are correctly validated for
// placement, formatting, and error reporting according to the YAML specification.
//
// Context:
// - Part of the babbel_yaml project, a Rust YAML parser/serializer.
// - Focuses on error handling and validation for document marker placement and usage.
// - Ensures robust error reporting and spec compliance for document marker issues.
//
// -------------------------------------------------------------------------------------
// Test Coverage:
// - Document start marker (---) placement and formatting
// - Invalid content on marker line
// - Proper marker usage with valid documents
// - Error message validation for marker misuse
// =====================================================================================