<commit_before>#include "./test_group.hpp"

namespace c4 {
namespace yml {

#define BLOCK_FOLDED_CASES \
    "7T8X",                                            \
    "block folded as seq val, implicit indentation 2", \
    "block folded as map val, implicit indentation 2",\
    "block folded as map val, implicit indentation 2, chomp=keep",\
    "block folded as map val, implicit indentation 2, chomp=strip",\
    "block folded as map val, implicit indentation 3",\<commit_msg>[wip] re #152: add test reproducing<commit_after>#include "./test_group.hpp"

namespace c4 {
namespace yml {

TEST(block_scalars, issue152)
{
    Tree t = parse(R"(
exec:
  cmd_succeeds:
    - |
      exec pg_isready -U "dog" -d "dbname=dog" -h 127.0.0.1 -p 5432
    - parses - yes
  cmd_fails:
    - |
      exec pg_isready -U "dog" -d "dbname=dog" -h 127.0.0.1 -p 5432
  parses: no
  cmd_fails2:
    - >
      exec pg_isready -U "dog" -d "dbname=dog" -h 127.0.0.1 -p 5432
  parses2: no
  cmd_fails3:
    - >-
      exec pg_isready -U "dog" -d "dbname=dog" -h 127.0.0.1 -p 5432
  parses3: no
periodSeconds: 10)");
}


#define BLOCK_FOLDED_CASES \
    "7T8X",                                            \
    "block folded as seq val, implicit indentation 2", \
    "block folded as map val, implicit indentation 2",\
    "block folded as map val, implicit indentation 2, chomp=keep",\
    "block folded as map val, implicit indentation 2, chomp=strip",\
    "block folded as map val, implicit indentation 3",\
{'fraction_non_alphanumeric': 0.11887172599059771, 'fraction_numerical': 0.04566823371390195, 'mean_word_length': 2.3408071748878925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5908271', 'n_tokens_mistral': 568, 'n_tokens_neox': 520, 'n_words': 166}