- if( !test_decode ("this_should_not_be_modified_1234",
- "this_should_not_be_modified_1234") ) return NULL;
-
- if( ! test_decode ("This+should+be+modified+1234!",
- "This should be modified 1234!") ) return NULL;;
-
- if( !test_decode ("This%20should%20be%20modified%201234!",
- "This should be modified 1234!")) return NULL;;
-
- if( ! test_decode ("%7E", "~")) return NULL;;
+#define DO_TEST_DECODE( a, b ) if( !test_decode( a, b) ) return NULL;
+ DO_TEST_DECODE ("this_should_not_be_modified_1234",
+ "this_should_not_be_modified_1234");
+ DO_TEST_DECODE ("This+should+be+modified+1234!",
+ "This should be modified 1234!");
+ DO_TEST_DECODE ("This%20should%20be%20modified%201234!",
+ "This should be modified 1234!");
+ DO_TEST_DECODE ("%7E", "~");