mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-20 07:03:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
65
spec/tests/terraform/test_heredoc.txt
Normal file
65
spec/tests/terraform/test_heredoc.txt
Normal file
@ -0,0 +1,65 @@
|
||||
---input---
|
||||
resource "local_file" "heredoc" {
|
||||
content = <<-DOC
|
||||
heredoc content
|
||||
DOC
|
||||
}
|
||||
|
||||
resource "local_file" "heredoc" {
|
||||
content = <<DOC
|
||||
heredoc content
|
||||
DOC
|
||||
}
|
||||
|
||||
---tokens---
|
||||
'resource' Keyword.Reserved
|
||||
' ' Text.Whitespace
|
||||
'"local_file"' Name.Class
|
||||
' ' Text.Whitespace
|
||||
'"heredoc"' Name.Variable
|
||||
' ' Text.Whitespace
|
||||
'{' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'content' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'=' Operator
|
||||
' ' Text.Whitespace
|
||||
'<<-' Operator
|
||||
'DOC' Literal.String.Delimiter
|
||||
'\n' Literal.String.Heredoc
|
||||
|
||||
' heredoc content\n' Literal.String.Heredoc
|
||||
|
||||
' DOC\n' Literal.String.Delimiter
|
||||
|
||||
'}' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'resource' Keyword.Reserved
|
||||
' ' Text.Whitespace
|
||||
'"local_file"' Name.Class
|
||||
' ' Text.Whitespace
|
||||
'"heredoc"' Name.Variable
|
||||
' ' Text.Whitespace
|
||||
'{' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'content' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'=' Operator
|
||||
' ' Text.Whitespace
|
||||
'<<' Operator
|
||||
'DOC' Literal.String.Delimiter
|
||||
'\n' Literal.String.Heredoc
|
||||
|
||||
' heredoc content\n' Literal.String.Heredoc
|
||||
|
||||
' DOC\n' Literal.String.Delimiter
|
||||
|
||||
'}' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user