mirror of
https://github.com/miekg/dns.git
synced 2025-10-12 18:31:00 +02:00
Also add empty txt record in another test
This commit is contained in:
parent
e64ea20885
commit
f3af5834c2
@ -179,6 +179,7 @@ func TestQuotes(t *testing.T) {
|
|||||||
`t.example.com. IN TXT "a bc"`: "t.example.com.\t3600\tIN\tTXT\t\"a bc\"",
|
`t.example.com. IN TXT "a bc"`: "t.example.com.\t3600\tIN\tTXT\t\"a bc\"",
|
||||||
`t.example.com. IN TXT "a
|
`t.example.com. IN TXT "a
|
||||||
bc"`: "t.example.com.\t3600\tIN\tTXT\t\"a\\n bc\"",
|
bc"`: "t.example.com.\t3600\tIN\tTXT\t\"a\\n bc\"",
|
||||||
|
`t.example.com. IN TXT ""`: "t.example.com.\t3600\tIN\tTXT\t\"\"",
|
||||||
`t.example.com. IN TXT "a"`: "t.example.com.\t3600\tIN\tTXT\t\"a\"",
|
`t.example.com. IN TXT "a"`: "t.example.com.\t3600\tIN\tTXT\t\"a\"",
|
||||||
`t.example.com. IN TXT "aa"`: "t.example.com.\t3600\tIN\tTXT\t\"aa\"",
|
`t.example.com. IN TXT "aa"`: "t.example.com.\t3600\tIN\tTXT\t\"aa\"",
|
||||||
`t.example.com. IN TXT "aaa" ;`: "t.example.com.\t3600\tIN\tTXT\t\"aaa\"",
|
`t.example.com. IN TXT "aaa" ;`: "t.example.com.\t3600\tIN\tTXT\t\"aaa\"",
|
||||||
|
@ -239,6 +239,7 @@ func endingToTxtSlice(c chan lex, errstr, f string) ([]string, *ParseError, stri
|
|||||||
s = append(s, "")
|
s = append(s, "")
|
||||||
}
|
}
|
||||||
quote = !quote
|
quote = !quote
|
||||||
|
// TODO(miek): remove, next line
|
||||||
empty = quote
|
empty = quote
|
||||||
default:
|
default:
|
||||||
return nil, &ParseError{f, errstr, l}, ""
|
return nil, &ParseError{f, errstr, l}, ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user