tests/testthat/_snaps/parse-yaml.md

yaml parsing - bad yaml

Code
  check_yaml_parser("--\n---\n")
Condition
  Error:
  ! Failed to parse line 1
  1 | --
      ^~
Code
  check_yaml_parser("---\n--\n")
Condition
  Error:
  ! Failed to parse line 2, expected YAML closing fence
  2 | --
        ^
Code
  check_yaml_parser("----\n---\n")
Condition
  Error:
  ! Failed to parse line 1
  1 | ----
      ^~~~
Code
  check_yaml_parser("---\n----\n")
Condition
  Error:
  ! Failed to parse line 2, expected YAML closing fence
  2 | ----
          ^
Code
  check_yaml_parser("---\n")
Condition
  Error:
  ! Failed to parse line 1, expected YAML closing fence
  1 | ---
         ^

yaml parsing - blank lines

Code
  check_yaml_parser("---\n\n---\n")
Condition
  Error:
  ! Failed to parse line 1
  1 | ---
      ^~~
Code
  check_yaml_parser("---\n\nvalue: 1\n---\n")
Condition
  Error:
  ! Failed to parse line 1
  1 | ---
      ^~~


Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on Aug. 21, 2025, 5:27 p.m.