Reorganize tests into a real spec suite

This commit is contained in:
2024-08-04 19:18:43 -03:00
parent 57c160173c
commit e7c2053222
693 changed files with 136 additions and 116 deletions

View File

@ -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

View 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

View 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

View File

@ -0,0 +1,10 @@
---input---
HTTP/1.1 200
---tokens---
'HTTP' Keyword.Reserved
'/' Operator
'1.1' Literal.Number
' ' Text
'200' Literal.Number
'\n' Text

View File

@ -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

View 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