specsuites: Tests for comment parsing
This commit is contained in:
parent
48039c0368
commit
db04b3dffe
1
specsuite/tests/comments/hash_comment.hcl
Normal file
1
specsuite/tests/comments/hash_comment.hcl
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Hash comment
|
3
specsuite/tests/comments/hash_comment.hcldec
Normal file
3
specsuite/tests/comments/hash_comment.hcldec
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
literal {
|
||||||
|
value = "ok"
|
||||||
|
}
|
4
specsuite/tests/comments/hash_comment.t
Normal file
4
specsuite/tests/comments/hash_comment.t
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# This test parses a file containing only a comment. It is a parsing-only test,
|
||||||
|
# so the hcldec spec for this test is just a literal value given below.
|
||||||
|
|
||||||
|
result = "ok"
|
3
specsuite/tests/comments/multiline_comment.hcl
Normal file
3
specsuite/tests/comments/multiline_comment.hcl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/*
|
||||||
|
Multi-line comment
|
||||||
|
*/
|
3
specsuite/tests/comments/multiline_comment.hcldec
Normal file
3
specsuite/tests/comments/multiline_comment.hcldec
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
literal {
|
||||||
|
value = "ok"
|
||||||
|
}
|
4
specsuite/tests/comments/multiline_comment.t
Normal file
4
specsuite/tests/comments/multiline_comment.t
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# This test parses a file containing only a comment. It is a parsing-only test,
|
||||||
|
# so the hcldec spec for this test is just a literal value given below.
|
||||||
|
|
||||||
|
result = "ok"
|
1
specsuite/tests/comments/slash_comment.hcl
Normal file
1
specsuite/tests/comments/slash_comment.hcl
Normal file
@ -0,0 +1 @@
|
|||||||
|
// Slash comment
|
3
specsuite/tests/comments/slash_comment.hcldec
Normal file
3
specsuite/tests/comments/slash_comment.hcldec
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
literal {
|
||||||
|
value = "ok"
|
||||||
|
}
|
4
specsuite/tests/comments/slash_comment.t
Normal file
4
specsuite/tests/comments/slash_comment.t
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# This test parses a file containing only a comment. It is a parsing-only test,
|
||||||
|
# so the hcldec spec for this test is just a literal value given below.
|
||||||
|
|
||||||
|
result = "ok"
|
Loading…
x
Reference in New Issue
Block a user