Skip to content

Commit c8a495d

Browse files
committed
Added comment example to tests
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent 675993c commit c8a495d

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Outside bundle
2+
bundle agent main
3+
{
4+
# Inside bundle, outside promise type
5+
vars:
6+
# Inside promise type
7+
"some_var"
8+
if => "something",
9+
# Inside promise, next to attributes
10+
string => "value";
11+
12+
"some_list"
13+
slist => {
14+
"Strings that go in a list which would be long",
15+
# Comment inside list of elements
16+
"More strings",
17+
"More and more and more and more",
18+
};
19+
20+
# A class guard shifts everything over 2 spaces:
21+
class_guard::
22+
# Inside promise type
23+
"some_var"
24+
if => "something",
25+
# Inside promise, next to attributes
26+
string => "value";
27+
}

tests/format/004_comments.input.cf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Outside bundle
2+
bundle agent main
3+
{
4+
# Inside bundle, outside promise type
5+
vars:
6+
# Inside promise type
7+
"some_var"
8+
if => "something",
9+
# Inside promise, next to attributes
10+
string => "value";
11+
12+
"some_list"
13+
slist => {
14+
"Strings that go in a list which would be long",
15+
# Comment inside list of elements
16+
"More strings",
17+
"More and more and more and more",
18+
};
19+
20+
# A class guard shifts everything over 2 spaces:
21+
class_guard::
22+
# Inside promise type
23+
"some_var"
24+
if => "something",
25+
# Inside promise, next to attributes
26+
string => "value";
27+
}

0 commit comments

Comments
 (0)