diff --git a/test.js b/test.js index e4d8669..b8ccef0 100644 --- a/test.js +++ b/test.js @@ -164,6 +164,34 @@ tape('query', function (t) { }] }) + testEncoder(t, packet, { + type: 'query', + questions: [{ + type: 'A', + class: 'IN', + name: 'hello.a.com', + qu_bit: false + }, { + type: 'SRV', + name: 'hello.srv.com', + qu_bit: false + }] + }) + + testEncoder(t, packet, { + type: 'query', + questions: [{ + type: 'A', + class: 'IN', + name: 'hello.a.com', + qu_bit: true + }, { + type: 'SRV', + name: 'hello.srv.com', + qu_bit: true + }] + }) + t.end() })