commit | c0ce9aa20d6ad6095c9a11d00bbd14d200a7ee4e | [log] [tgz] |
---|---|---|
author | Nico Golde <nico@ngolde.de> | Tue Jul 20 15:43:58 2010 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Wed Jul 21 02:43:58 2010 +0800 |
tree | 28c08d07d2690957acc604255a56e1dc1ddd65a5 | |
parent | 446bf376984c0ab0453ec79577b590225e36d991 [diff] |
tests: don't hardcode length values of expected encoding gsm_7bit_encode: make sure to return the number of actually written bytes gsm_7bit_decode: calculate length of resulting septets from input length before decoding The input length to gsm_7bit_decode reflects the number of encoded bytes to be decoded. As the decoding is done on the input in septetes we need to take this into account and recalculate the length.