specsuites: Tests for comment parsing

This commit is contained in:
Martin Atkins 2018-08-10 08:51:51 -07:00
parent 48039c0368
commit db04b3dffe
9 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1 @@
# Hash comment

View File

@ -0,0 +1,3 @@
literal {
value = "ok"
}

View 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"

View File

@ -0,0 +1,3 @@
/*
Multi-line comment
*/

View File

@ -0,0 +1,3 @@
literal {
value = "ok"
}

View 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"

View File

@ -0,0 +1 @@
// Slash comment

View File

@ -0,0 +1,3 @@
literal {
value = "ok"
}

View 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"