]> git.ipfire.org Git - thirdparty/tor.git/commit
Improve tor_sscanf tests
authorEsteban Manchado Velázquez <emanchado@demiurgo.org>
Mon, 6 Feb 2012 21:05:47 +0000 (22:05 +0100)
committerNick Mathewson <nickm@torproject.org>
Fri, 9 Mar 2012 01:49:24 +0000 (20:49 -0500)
commitee317256bb80c832f4a826b2520df72f679f2390
tree415c88c4d81ab2ac31ce61bce27c86cb3cda7de4
parent8a633a3ebd2250f296b166e1c57a130f5589db37
Improve tor_sscanf tests

* Add many new test cases, tweak/improve existing ones, reorganize them a bit
* Switch the parameters in all test_eq calls so the expected value is the first
* Change all the "r = tor_sscanf(...);\ntest_eq(1, r)" to the more compact
  "test_eq(1, tor_sscanf(...))". It may be a tiny bit harder to find the
  tor_sscanf calls (it's the long lines anyway), but it saves a lot of lines,
  which should help readability.
src/test/test_util.c