File: spec-09-02.test

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (29 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download | duplicates (8)
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
# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s --strict-whitespace
# CHECK: "as space trimmed\nspecific\L escaped\t none"

## Note: The example was originally taken from Spec 1.1, but the parsing rules
## have been changed since then.
## * The line-separator character '\u2028' is no longer considered a line-break
##   character, so the line "...specific\u2028\nescaped..." is now parsed as 
##   "...specific\L escaped...".
## * The paragraph-separator character '\u2029' is also excluded from line-break
##   characters, so the original sequence "escaped\t\\\u2029" is no longer
##   considered valid. This is replaced by "escaped\t\\\n" in the test source,
#    so the output has changed as well.
## See https://yaml.org/spec/1.2.2/ext/changes/ for details.
##
## Note 2: Different parsers handle this corner case example differently.
## * https://github.com/yaml/libyaml:
##   "as space trimmed\nspecific\L\nescaped\t\nnone"
## * https://github.com/yaml/yaml-reference-parser (parser-1.2):
##   "as space trimmed\nspecific\L escaped\t none"
## * https://github.com/yaml/yaml-reference-parser (parser-1.3):
##   "as space trimmed\nspecific
 escaped\t none"

 "as space
 trimmed 

 specific

 escaped	\
 
 none"