Fixes #13.
Add new tests.
I had to export name.encode and name.decode so they could be tested.
I want to rewrite the encoder to do name compression. This isn't a problem for queries because there's just one name but for responses, the current encoder doesn't do name compression which is recommended.
Fixes #13. Add new tests. I had to export name.encode and name.decode so they could be tested. I want to rewrite the encoder to do name compression. This isn't a problem for queries because there's just one name but for responses, the current encoder doesn't do name compression which is recommended.