summaryrefslogtreecommitdiffstats
path: root/tests/sms/sms_test.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: don't hardcode length values of expected encoding gsm_7bit_encode:Nico Golde2010-07-211-11/+10
| | | | | | | | | 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.
* tests: Separate encoding/decoding test to verify them independlyHolger Hans Peter Freyther2010-07-201-17/+78
| | | | | | Use the current test result as test data for future regression testing. The encode function appears to add too many zeros to the text.
* * rewrite GSM 7bit default encoding/decoding based on a lookup table as the ↵Nico Golde2010-07-201-1/+16
| | | | previous code produced wrong encodings for certain characters.
* intial checkin of the libosmocore projectHarald Welte2010-02-201-0/+47