]> git.ipfire.org Git - thirdparty/tor.git/commit
Clean up and improve gzip unit tests
authorEsteban Manchado Velázquez <emanchado@demiurgo.org>
Mon, 6 Feb 2012 18:22:32 +0000 (19:22 +0100)
committerNick Mathewson <nickm@torproject.org>
Fri, 9 Mar 2012 01:49:23 +0000 (20:49 -0500)
commitf90406cb01337ca0a411ed145441d2eceb29b8b4
tree204e72a4943328f0fc7b2d80b890dc09e8c1b422
parentf4242d2e4a3c35affc0e48655e4458648d978334
Clean up and improve gzip unit tests

* Switch some test_eq parameters so the expected is always the first parameter
* Drop some manual checks of compressed format magic numbers (they're pointless
  and they make the unit tests less readable and more fragile, considering
  we're already indirectly checking those magic numbers via the
  detect_compression_method function)
* Add a couple of extra assertions
src/test/test_util.c