Add MixCase query test
As reported by Ask, these aren't correctly handled :(
This commit is contained in:
parent
980f5e9d63
commit
dbef97abad
|
@ -55,6 +55,14 @@ func TestServing(t *testing.T) {
|
|||
t.Log("Unexpected result for example.com", txt, "!= Hello example")
|
||||
t.Fail()
|
||||
}
|
||||
// Test Mixes cased as notices by Ask.
|
||||
m.SetQuestion("eXaMplE.cOm.", TypeTXT)
|
||||
r, _, _ = c.Exchange(m, "127.0.0.1:8053")
|
||||
txt = r.Extra[0].(*TXT).Txt[0]
|
||||
if txt != "Hello example" {
|
||||
t.Log("Unexpected result for example.com", txt, "!= Hello example")
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkServing(b *testing.B) {
|
||||
|
|
Loading…
Reference in New Issue