Skip to content

Commit

Permalink
Add tests concerning question QU bit
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcainman committed Oct 13, 2023
1 parent 10307f9 commit 52a86ce
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test.js
Expand Up @@ -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()
})

Expand Down

0 comments on commit 52a86ce

Please sign in to comment.