mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 22:53:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
35
spec/tests/kotlin/test_string_interpolation.txt
Normal file
35
spec/tests/kotlin/test_string_interpolation.txt
Normal file
@ -0,0 +1,35 @@
|
||||
---input---
|
||||
val something = "something"
|
||||
"Here is $something"
|
||||
"Here is ${something.toUpperList()}"
|
||||
|
||||
---tokens---
|
||||
'val' Keyword.Declaration
|
||||
' ' Text.Whitespace
|
||||
'something' Name.Variable
|
||||
' ' Text.Whitespace
|
||||
'=' Operator
|
||||
' ' Text.Whitespace
|
||||
'"' Literal.String
|
||||
'something' Literal.String
|
||||
'"' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'"' Literal.String
|
||||
'Here is ' Literal.String
|
||||
'$' Literal.String.Interpol
|
||||
'something' Name
|
||||
'"' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'"' Literal.String
|
||||
'Here is ' Literal.String
|
||||
'${' Literal.String.Interpol
|
||||
'something' Name
|
||||
'.' Punctuation
|
||||
'toUpperList' Name.Attribute
|
||||
'(' Punctuation
|
||||
')' Punctuation
|
||||
'}' Literal.String.Interpol
|
||||
'"' Literal.String
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user