Add tests concerning question QU bit
This commit is contained in:
parent
2f0d514df0
commit
380364bd5a
28
test.js
28
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()
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user