File: test_empty_file.cpp

package info (click to toggle)
rapidyaml 0.10.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,676 kB
  • sloc: cpp: 73,851; python: 3,678; javascript: 414; xml: 253; makefile: 96; sh: 44
file content (80 lines) | stat: -rw-r--r-- 996 bytes parent folder | download
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#include "./test_lib/test_group.hpp"
#include "./test_lib/test_group.def.hpp"

namespace c4 {
namespace yml {


CASE_GROUP(EMPTY_FILE)
{

ADD_CASE_TO_GROUP("empty0-nochars",
"",
NOTYPE);


ADD_CASE_TO_GROUP("empty0-multiline", R"(


)", NOTYPE);


ADD_CASE_TO_GROUP("empty0-multiline with spaces", R"(

    
     
      


)", NOTYPE);


ADD_CASE_TO_GROUP("empty0-multiline with spaces and tabs", R"(

    
   		  
      
		


)", NOTYPE);


ADD_CASE_TO_GROUP("empty0-multiline-with-comments 0", R"(
# well hello sir, I see you are fine
# very fine thank you
# send my very best wishes
)", NOTYPE);

ADD_CASE_TO_GROUP("empty0-multiline-with-comments 1", R"(



# well hello sir, I see you are fine
# very fine thank you
# send my very best wishes



)", NOTYPE);

ADD_CASE_TO_GROUP("empty0-multiline-with-comments 2", R"(

      
    		

# well hello sir, I see you are fine
# very fine thank you
# send my very best wishes


    		
      


)", NOTYPE);

}

} // namespace yml
} // namespace c4