mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
Imported test cases from pygments
This commit is contained in:
28
tests/teal/test_comments.txt
Normal file
28
tests/teal/test_comments.txt
Normal file
@ -0,0 +1,28 @@
|
||||
---input---
|
||||
a//c1
|
||||
//c2
|
||||
label://c3
|
||||
a // c4
|
||||
label: implicit comment
|
||||
|
||||
---tokens---
|
||||
'a' Name.Function
|
||||
'//c1' Comment.Single
|
||||
'\n' Text
|
||||
|
||||
' ' Text.Whitespace
|
||||
'//c2' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'label:' Name.Function
|
||||
'//c3' Comment.Single
|
||||
'\n' Text
|
||||
|
||||
'a' Name.Function
|
||||
' ' Text.Whitespace
|
||||
'// c4' Comment.Single
|
||||
'\n' Text
|
||||
|
||||
'label:' Name.Label
|
||||
' implicit comment' Comment.Single
|
||||
'\n' Text.Whitespace
|
28
tests/teal/test_literals.txt
Normal file
28
tests/teal/test_literals.txt
Normal file
@ -0,0 +1,28 @@
|
||||
---input---
|
||||
a 0x1AaAF
|
||||
a 7777777777777777777777777777777777777777777777777774MSJUVU
|
||||
a base32(aB/c23=)
|
||||
a b64 aB/c23=
|
||||
|
||||
---tokens---
|
||||
'a' Name.Function
|
||||
' ' Text.Whitespace
|
||||
'0x1AaAF' Literal.Number.Hex
|
||||
'\n' Text
|
||||
|
||||
'a' Name.Function
|
||||
' ' Text.Whitespace
|
||||
'7777777777777777777777777777777777777777777777777774MSJUVU' Literal.Number
|
||||
'\n' Text
|
||||
|
||||
'a' Name.Function
|
||||
' ' Text.Whitespace
|
||||
'base32' Literal.String.Affix
|
||||
'(aB/c23=)' Literal.String.Other
|
||||
'\n' Text
|
||||
|
||||
'a' Name.Function
|
||||
' ' Text.Whitespace
|
||||
'b64 ' Literal.String.Affix
|
||||
'aB/c23=' Literal.String.Other
|
||||
'\n' Text
|
15
tests/teal/test_strings.txt
Normal file
15
tests/teal/test_strings.txt
Normal file
@ -0,0 +1,15 @@
|
||||
---input---
|
||||
a "abc\x123\n\"de//f"
|
||||
|
||||
---tokens---
|
||||
'a' Name.Function
|
||||
' ' Text.Whitespace
|
||||
'"' Literal.String
|
||||
'abc' Literal.String
|
||||
'\\x12' Literal.String.Escape
|
||||
'3' Literal.String
|
||||
'\\n' Literal.String.Escape
|
||||
'\\"' Literal.String.Escape
|
||||
'de//f' Literal.String
|
||||
'"' Literal.String
|
||||
'\n' Text
|
Reference in New Issue
Block a user