mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 14:43:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
---input---
|
||||
GET / HTTP/1.0
|
||||
Content-Type: application/calendar+xml
|
||||
|
||||
<foo>
|
||||
|
||||
---tokens---
|
||||
'GET' Name.Function
|
||||
' ' Text
|
||||
'/' Name.Namespace
|
||||
' ' Text
|
||||
'HTTP' Keyword.Reserved
|
||||
'/' Operator
|
||||
'1.0' Literal.Number
|
||||
'\n' Text
|
||||
|
||||
'Content-Type' Name.Attribute
|
||||
'' Text
|
||||
':' Operator
|
||||
' ' Text
|
||||
'application/calendar+xml' Literal
|
||||
'\n' Text
|
||||
|
||||
'\n' Text
|
||||
|
||||
'<foo' Name.Tag
|
||||
'>' Name.Tag
|
||||
'\n' Text.Whitespace
|
28
spec/unsupported_lexers/http/test_application_xml.txt
Normal file
28
spec/unsupported_lexers/http/test_application_xml.txt
Normal file
@ -0,0 +1,28 @@
|
||||
---input---
|
||||
GET / HTTP/1.0
|
||||
Content-Type: application/xml
|
||||
|
||||
<foo>
|
||||
|
||||
---tokens---
|
||||
'GET' Name.Function
|
||||
' ' Text
|
||||
'/' Name.Namespace
|
||||
' ' Text
|
||||
'HTTP' Keyword.Reserved
|
||||
'/' Operator
|
||||
'1.0' Literal.Number
|
||||
'\n' Text
|
||||
|
||||
'Content-Type' Name.Attribute
|
||||
'' Text
|
||||
':' Operator
|
||||
' ' Text
|
||||
'application/xml' Literal
|
||||
'\n' Text
|
||||
|
||||
'\n' Text
|
||||
|
||||
'<foo' Name.Tag
|
||||
'>' Name.Tag
|
||||
'\n' Text.Whitespace
|
12
spec/unsupported_lexers/http/test_http_status_line.txt
Normal file
12
spec/unsupported_lexers/http/test_http_status_line.txt
Normal file
@ -0,0 +1,12 @@
|
||||
---input---
|
||||
HTTP/1.1 200 OK
|
||||
|
||||
---tokens---
|
||||
'HTTP' Keyword.Reserved
|
||||
'/' Operator
|
||||
'1.1' Literal.Number
|
||||
' ' Text
|
||||
'200' Literal.Number
|
||||
' ' Text
|
||||
'OK' Name.Exception
|
||||
'\n' Text
|
@ -0,0 +1,10 @@
|
||||
---input---
|
||||
HTTP/1.1 200
|
||||
|
||||
---tokens---
|
||||
'HTTP' Keyword.Reserved
|
||||
'/' Operator
|
||||
'1.1' Literal.Number
|
||||
' ' Text
|
||||
'200' Literal.Number
|
||||
'\n' Text
|
@ -0,0 +1,11 @@
|
||||
---input---
|
||||
HTTP/1.1 200
|
||||
|
||||
---tokens---
|
||||
'HTTP' Keyword.Reserved
|
||||
'/' Operator
|
||||
'1.1' Literal.Number
|
||||
' ' Text
|
||||
'200' Literal.Number
|
||||
' ' Text
|
||||
'\n' Text
|
41
spec/unsupported_lexers/http/test_urlencoded.txt
Normal file
41
spec/unsupported_lexers/http/test_urlencoded.txt
Normal file
@ -0,0 +1,41 @@
|
||||
---input---
|
||||
POST /login HTTP/1.1
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Content-Length: 50
|
||||
|
||||
login=foo&password=12345
|
||||
|
||||
|
||||
---tokens---
|
||||
'POST' Name.Function
|
||||
' ' Text
|
||||
'/login' Name.Namespace
|
||||
' ' Text
|
||||
'HTTP' Keyword.Reserved
|
||||
'/' Operator
|
||||
'1.1' Literal.Number
|
||||
'\n' Text
|
||||
|
||||
'Content-Type' Name.Attribute
|
||||
'' Text
|
||||
':' Operator
|
||||
' ' Text
|
||||
'application/x-www-form-urlencoded' Literal
|
||||
'\n' Text
|
||||
|
||||
'Content-Length' Name.Attribute
|
||||
'' Text
|
||||
':' Operator
|
||||
' ' Text
|
||||
'50' Literal
|
||||
'\n' Text
|
||||
|
||||
'\n' Text
|
||||
|
||||
'login' Name.Tag
|
||||
'=' Operator
|
||||
'foo' Literal.String
|
||||
'&' Punctuation
|
||||
'password' Name.Tag
|
||||
'=' Operator
|
||||
'12345\n' Literal.String
|
Reference in New Issue
Block a user