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:
20
spec/tests/dns/a-record.txt
Normal file
20
spec/tests/dns/a-record.txt
Normal file
@ -0,0 +1,20 @@
|
||||
---input---
|
||||
delta A 192.0.2.4 ; comment
|
||||
delta2 A 192.0.2.5
|
||||
|
||||
---tokens---
|
||||
'delta' Name
|
||||
' ' Text.Whitespace
|
||||
'A' Keyword.Type
|
||||
' ' Text.Whitespace
|
||||
'192.0.2.4' Literal
|
||||
' ' Text.Whitespace
|
||||
'; comment' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'delta2' Name
|
||||
' ' Text.Whitespace
|
||||
'A' Keyword.Type
|
||||
' ' Text.Whitespace
|
||||
'192.0.2.5' Literal
|
||||
'\n' Text.Whitespace
|
8
spec/tests/dns/include.txt
Normal file
8
spec/tests/dns/include.txt
Normal file
@ -0,0 +1,8 @@
|
||||
---input---
|
||||
$INCLUDE test.zone
|
||||
|
||||
---tokens---
|
||||
'$INCLUDE' Comment.Preproc
|
||||
' ' Text.Whitespace
|
||||
'test.zone' Comment.PreprocFile
|
||||
'\n' Text.Whitespace
|
55
spec/tests/dns/soa.txt
Normal file
55
spec/tests/dns/soa.txt
Normal file
@ -0,0 +1,55 @@
|
||||
---input---
|
||||
@ IN SOA ns root ( ; E-mail
|
||||
42 ; Serial
|
||||
2h ; Refresh
|
||||
1h ; Retry
|
||||
14d ; Expire
|
||||
1h ) ; Negative Cache TTL
|
||||
|
||||
---tokens---
|
||||
'@' Operator
|
||||
' ' Text.Whitespace
|
||||
'IN' Name.Class
|
||||
' ' Text.Whitespace
|
||||
'SOA' Keyword.Type
|
||||
' ' Text.Whitespace
|
||||
'ns' Literal
|
||||
' ' Text.Whitespace
|
||||
'root' Literal
|
||||
' ' Text.Whitespace
|
||||
'(' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'; E-mail' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'42' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
'; Serial' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'2h' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
'; Refresh' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'1h' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
'; Retry' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'14d' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
'; Expire' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'1h' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
')' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'; Negative Cache TTL' Comment.Single
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user