Add tests concerning question QU bit

This commit is contained in:
vulcainman 2023-10-13 14:17:50 +02:00 committed by LittleChest
parent 2f0d514df0
commit 380364bd5a

28
test.js
View File

@ -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()
})