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:
13
spec/tests/yaml/test_yaml.txt
Normal file
13
spec/tests/yaml/test_yaml.txt
Normal file
@ -0,0 +1,13 @@
|
||||
# Bug #1528: This previously parsed 'token # innocent' as a tag
|
||||
|
||||
---input---
|
||||
here: token # innocent: comment
|
||||
|
||||
---tokens---
|
||||
'here' Name.Tag
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'token' Literal.Scalar.Plain
|
||||
' ' Text.Whitespace
|
||||
'# innocent: comment' Comment.Single
|
||||
'\n' Text.Whitespace
|
11
spec/tests/yaml/test_yaml_colon_in_key.txt
Normal file
11
spec/tests/yaml/test_yaml_colon_in_key.txt
Normal file
@ -0,0 +1,11 @@
|
||||
# Colon in the key name is accepted by the YAML specs too
|
||||
|
||||
---input---
|
||||
foo:bar: value
|
||||
|
||||
---tokens---
|
||||
'foo:bar' Name.Tag
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'value' Literal.Scalar.Plain
|
||||
'\n' Text.Whitespace
|
11
spec/tests/yaml/test_yaml_colon_in_key_double.txt
Normal file
11
spec/tests/yaml/test_yaml_colon_in_key_double.txt
Normal file
@ -0,0 +1,11 @@
|
||||
# Colons in the key name is accepted by the YAML specs too
|
||||
|
||||
---input---
|
||||
foo::bar: value
|
||||
|
||||
---tokens---
|
||||
'foo::bar' Name.Tag
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'value' Literal.Scalar.Plain
|
||||
'\n' Text.Whitespace
|
11
spec/tests/yaml/test_yaml_colon_in_key_start.txt
Normal file
11
spec/tests/yaml/test_yaml_colon_in_key_start.txt
Normal file
@ -0,0 +1,11 @@
|
||||
# Colon at the beginning of the key name is accepted by the YAML specs too
|
||||
|
||||
---input---
|
||||
:foo: value
|
||||
|
||||
---tokens---
|
||||
':foo' Name.Tag
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'value' Literal.Scalar.Plain
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user