mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
12
spec/tests/properties/test_comments.txt
Normal file
12
spec/tests/properties/test_comments.txt
Normal file
@ -0,0 +1,12 @@
|
||||
# Assures lines lead by either # or ! are recognized as a comment
|
||||
|
||||
---input---
|
||||
! a comment
|
||||
# also a comment
|
||||
|
||||
---tokens---
|
||||
'! a comment' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'# also a comment' Comment.Single
|
||||
'\n' Text.Whitespace
|
10
spec/tests/properties/test_escaped_space_in_key.txt
Normal file
10
spec/tests/properties/test_escaped_space_in_key.txt
Normal file
@ -0,0 +1,10 @@
|
||||
---input---
|
||||
key = value
|
||||
|
||||
---tokens---
|
||||
'key' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'=' Operator
|
||||
' ' Text.Whitespace
|
||||
'value' Literal.String
|
||||
'\n' Text.Whitespace
|
12
spec/tests/properties/test_escaped_space_in_value.txt
Normal file
12
spec/tests/properties/test_escaped_space_in_value.txt
Normal file
@ -0,0 +1,12 @@
|
||||
---input---
|
||||
key = doubleword\ value
|
||||
|
||||
---tokens---
|
||||
'key' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'=' Operator
|
||||
' ' Text.Whitespace
|
||||
'doubleword' Literal.String
|
||||
'\\ ' Literal.String.Escape
|
||||
'value' Literal.String
|
||||
'\n' Text.Whitespace
|
6
spec/tests/properties/test_just_key.txt
Normal file
6
spec/tests/properties/test_just_key.txt
Normal file
@ -0,0 +1,6 @@
|
||||
---input---
|
||||
justkey
|
||||
|
||||
---tokens---
|
||||
'justkey' Name.Attribute
|
||||
'\n' Text.Whitespace
|
8
spec/tests/properties/test_just_key_with_space.txt
Normal file
8
spec/tests/properties/test_just_key_with_space.txt
Normal file
@ -0,0 +1,8 @@
|
||||
---input---
|
||||
just\ key
|
||||
|
||||
---tokens---
|
||||
'just' Name.Attribute
|
||||
'\\ ' Literal.String.Escape
|
||||
'key' Name.Attribute
|
||||
'\n' Text.Whitespace
|
@ -0,0 +1,6 @@
|
||||
---input---
|
||||
# comment
|
||||
|
||||
---tokens---
|
||||
'# comment' Comment.Single
|
||||
'\n' Text.Whitespace
|
8
spec/tests/properties/test_space_delimited_kv_pair.txt
Normal file
8
spec/tests/properties/test_space_delimited_kv_pair.txt
Normal file
@ -0,0 +1,8 @@
|
||||
---input---
|
||||
key value
|
||||
|
||||
---tokens---
|
||||
'key' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'value' Literal.String
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user