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:
63
spec/tests/bibtex/test_entry.txt
Normal file
63
spec/tests/bibtex/test_entry.txt
Normal file
@ -0,0 +1,63 @@
|
||||
---input---
|
||||
This is a comment.
|
||||
|
||||
@ARTICLE{ruckenstein-diffusion,
|
||||
author = "Liu, Hongquin" # and # "Ruckenstein, Eli",
|
||||
year = 1997,
|
||||
month = JAN,
|
||||
pages = "888-895"
|
||||
}
|
||||
|
||||
---tokens---
|
||||
'This is a comment.' Comment
|
||||
'\n\n' Text.Whitespace
|
||||
|
||||
'@ARTICLE' Name.Class
|
||||
'{' Punctuation
|
||||
'ruckenstein-diffusion' Name.Label
|
||||
',' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'author' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'=' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'"' Literal.String
|
||||
'Liu, Hongquin' Literal.String
|
||||
'"' Literal.String
|
||||
' ' Text.Whitespace
|
||||
'#' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'and' Name.Variable
|
||||
' ' Text.Whitespace
|
||||
'#' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'"' Literal.String
|
||||
'Ruckenstein, Eli' Literal.String
|
||||
'"' Literal.String
|
||||
',' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'year' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'=' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'1997' Literal.Number
|
||||
',' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'month' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'=' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'JAN' Name.Variable
|
||||
',' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'pages' Name.Attribute
|
||||
' ' Text.Whitespace
|
||||
'=' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'"' Literal.String
|
||||
'888-895' Literal.String
|
||||
'"' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'}' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user