@@ -6,20 +6,20 @@ describe 'Context'
6
6
end
7
7
8
8
describe ' #GetNextIndent(line, indent)'
9
- context ' when the `line` was structures'
9
+ context ' when the `line` was the structures'
10
10
it ' should do not indent'
11
11
Expect copy (b: subject ).GetNextIndent (' ---' , 0 ) == 0
12
12
Expect copy (b: subject ).GetNextIndent (' --- ' , 0 ) == 0
13
13
end
14
14
15
- context ' with tags'
15
+ context ' with the tags'
16
16
it ' should do not indent'
17
17
Expect copy (b: subject ).GetNextIndent (' --- !!tag' , 0 ) == 0
18
18
Expect copy (b: subject ).GetNextIndent (' --- !!tag ' , 0 ) == 0
19
19
end
20
20
end
21
21
22
- context ' with scalar start symbols (">" and "|")'
22
+ context ' with the block scalar headers (">" and "|")'
23
23
it ' should do indent'
24
24
Expect copy (b: subject ).GetNextIndent (" --- \> " , 0 ) == 2
25
25
Expect copy (b: subject ).GetNextIndent (" --- \> " , 0 ) == 2
@@ -28,7 +28,7 @@ describe 'Context'
28
28
Expect copy (b: subject ).GetNextIndent (' --- | ' , 0 ) == 2
29
29
end
30
30
31
- context ' when tags existed before it'
31
+ context ' when the tags existed before it'
32
32
it ' should do indent'
33
33
Expect copy (b: subject ).GetNextIndent (" --- !!tag \> " , 0 ) == 2
34
34
Expect copy (b: subject ).GetNextIndent (" --- !!tag \> " , 0 ) == 2
@@ -38,7 +38,7 @@ describe 'Context'
38
38
end
39
39
end
40
40
41
- context ' when not existed spaces before the scalar start symbols '
41
+ context ' when not existed spaces before the block scalar headers '
42
42
it ' should do not indent'
43
43
Expect copy (b: subject ).GetNextIndent (" ---\> " , 0 ) == 0
44
44
Expect copy (b: subject ).GetNextIndent (" ---\> " , 0 ) == 0
@@ -50,7 +50,7 @@ describe 'Context'
50
50
end
51
51
end
52
52
53
- context ' when the `line` was scalar start symbols (">" and "|")'
53
+ context ' when the `line` was the block scalar headers (">" and "|")'
54
54
it ' should do indent'
55
55
Expect copy (b: subject ).GetNextIndent (" \> " , 0 ) == 2
56
56
Expect copy (b: subject ).GetNextIndent (" \> " , 0 ) == 2
@@ -59,7 +59,7 @@ describe 'Context'
59
59
Expect copy (b: subject ).GetNextIndent (' | ' , 0 ) == 2
60
60
end
61
61
62
- context ' when tags existed before it'
62
+ context ' when the tags existed before it'
63
63
it ' should do indent'
64
64
Expect copy (b: subject ).GetNextIndent (" !!tag \> " , 0 ) == 2
65
65
Expect copy (b: subject ).GetNextIndent (" !!tag \> " , 0 ) == 2
@@ -69,7 +69,7 @@ describe 'Context'
69
69
end
70
70
end
71
71
72
- context ' when existed spaces before the scalar start symbols '
72
+ context ' when existed spaces before the block scalar headers '
73
73
it ' should do not indent'
74
74
Expect copy (b: subject ).GetNextIndent (" \> " , 0 ) == 0
75
75
Expect copy (b: subject ).GetNextIndent (" \> " , 0 ) == 0
@@ -80,20 +80,20 @@ describe 'Context'
80
80
end
81
81
end
82
82
83
- context ' when the `line` was mappings collection '
83
+ context ' when the `line` was the block mappings '
84
84
it ' should do indent'
85
85
Expect copy (b: subject ).GetNextIndent (' hoge:' , 0 ) == 2
86
86
Expect copy (b: subject ).GetNextIndent (' hoge: ' , 0 ) == 2
87
87
end
88
88
89
- context ' with tags'
89
+ context ' with the tags'
90
90
it ' should do indent'
91
91
Expect copy (b: subject ).GetNextIndent (' hoge: !!tag' , 0 ) == 2
92
92
Expect copy (b: subject ).GetNextIndent (' hoge: !!tag ' , 0 ) == 2
93
93
end
94
94
end
95
95
96
- context ' with scalar start symbols (">" and "|")'
96
+ context ' with the block scalar headers (">" and "|")'
97
97
it ' should do indent'
98
98
Expect copy (b: subject ).GetNextIndent (" hoge: \> " , 0 ) == 2
99
99
Expect copy (b: subject ).GetNextIndent (" hoge: \> " , 0 ) == 2
@@ -102,7 +102,7 @@ describe 'Context'
102
102
Expect copy (b: subject ).GetNextIndent (' hoge: | ' , 0 ) == 2
103
103
end
104
104
105
- context ' when tags existed before it'
105
+ context ' when the tags existed before it'
106
106
it ' should do indent'
107
107
Expect copy (b: subject ).GetNextIndent (" hoge: !!tag \> " , 0 ) == 2
108
108
Expect copy (b: subject ).GetNextIndent (" hoge: !!tag \> " , 0 ) == 2
@@ -112,7 +112,7 @@ describe 'Context'
112
112
end
113
113
end
114
114
115
- context ' when not existed spaces between ":" and the scalar start symbols '
115
+ context ' when not existed spaces between ":" and the block scalar headers '
116
116
it ' should do not indent'
117
117
Expect copy (b: subject ).GetNextIndent (" hoge:\> " , 0 ) == 0
118
118
Expect copy (b: subject ).GetNextIndent (" hoge:\> " , 0 ) == 0
@@ -124,26 +124,26 @@ describe 'Context'
124
124
end
125
125
end
126
126
127
- context ' when the `line` was sequence collection '
127
+ context ' when the `line` was the block sequences '
128
128
it ' should do indent'
129
129
Expect copy (b: subject ).GetNextIndent (' -' , 0 ) == 2
130
130
Expect copy (b: subject ).GetNextIndent (' - ' , 0 ) == 2
131
131
end
132
132
133
- context ' with tags'
133
+ context ' with the tags'
134
134
it ' should do indent'
135
135
Expect copy (b: subject ).GetNextIndent (' - !!tag' , 0 ) == 2
136
136
Expect copy (b: subject ).GetNextIndent (' - !!tag ' , 0 ) == 2
137
137
end
138
138
end
139
139
140
- context ' with mappings collection '
140
+ context ' with the block mappings '
141
141
it ' should do double indent'
142
142
Expect copy (b: subject ).GetNextIndent (' - hoge:' , 0 ) == 4
143
143
Expect copy (b: subject ).GetNextIndent (' - hoge: ' , 0 ) == 4
144
144
end
145
145
146
- context ' with tags'
146
+ context ' with the tags'
147
147
it ' should do double indent'
148
148
Expect copy (b: subject ).GetNextIndent (' - hoge: !!tag' , 0 ) == 4
149
149
Expect copy (b: subject ).GetNextIndent (' - hoge: !!tag ' , 0 ) == 4
@@ -156,21 +156,21 @@ describe 'Context'
156
156
Expect copy (b: subject ).GetNextIndent (' - hoge: 1 ' , 0 ) == 2
157
157
end
158
158
159
- context ' with tags'
159
+ context ' with the tags'
160
160
it ' should do indent'
161
161
Expect copy (b: subject ).GetNextIndent (' - hoge: !!tag 1' , 0 ) == 2
162
162
Expect copy (b: subject ).GetNextIndent (' - hoge: !!tag 1 ' , 0 ) == 2
163
163
end
164
164
end
165
165
end
166
166
167
- context ' with scalar start symbols '
167
+ context ' with the block scalar headers '
168
168
it ' should do double indent'
169
169
Expect copy (b: subject ).GetNextIndent (" - hoge: \> " , 0 ) == 4
170
170
Expect copy (b: subject ).GetNextIndent (" - hoge: \> " , 0 ) == 4
171
171
end
172
172
173
- context ' when tags existed before it'
173
+ context ' when the tags existed before it'
174
174
it ' should do indent'
175
175
Expect copy (b: subject ).GetNextIndent (" - hoge: !!tag \> " , 0 ) == 4
176
176
Expect copy (b: subject ).GetNextIndent (" - hoge: !!tag \> " , 0 ) == 4
@@ -179,7 +179,7 @@ describe 'Context'
179
179
end
180
180
end
181
181
182
- context ' with scalar start symbols (">" and "|")'
182
+ context ' with the block scalar headers (">" and "|")'
183
183
it ' should do indent'
184
184
Expect copy (b: subject ).GetNextIndent (" - \> " , 0 ) == 2
185
185
Expect copy (b: subject ).GetNextIndent (" - \> " , 0 ) == 2
@@ -188,7 +188,7 @@ describe 'Context'
188
188
Expect copy (b: subject ).GetNextIndent (' - | ' , 0 ) == 2
189
189
end
190
190
191
- context ' when tags existed before it'
191
+ context ' when the tags existed before it'
192
192
it ' should do indent'
193
193
Expect copy (b: subject ).GetNextIndent (" - !!tag \> " , 0 ) == 2
194
194
Expect copy (b: subject ).GetNextIndent (" - !!tag \> " , 0 ) == 2
@@ -198,7 +198,7 @@ describe 'Context'
198
198
end
199
199
end
200
200
201
- context ' when not existed spaces between "-" and the scalar start symbols '
201
+ context ' when not existed spaces between "-" and the block scalar headers '
202
202
it ' should do not indent'
203
203
Expect copy (b: subject ).GetNextIndent (" -\> " , 0 ) == 0
204
204
Expect copy (b: subject ).GetNextIndent (" -\> " , 0 ) == 0
0 commit comments