Add MixCase query test

As reported by Ask, these aren't correctly handled :(
This commit is contained in:
Miek Gieben 2013-07-25 07:55:59 +01:00
parent 980f5e9d63
commit dbef97abad
1 changed files with 8 additions and 0 deletions

View File

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