diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-02-09 22:05:15 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-02-09 22:05:15 +0100 |
commit | e2372f67e89a863b69343dc2097eac949397bb2a (patch) | |
tree | a3754a64a3800da7dc4043401a0f3eb5da4d1ad7 /SMSTests.st | |
parent | 1dd46f82bbce76ccb6dc27bd7c6a5ced64d20543 (diff) |
sms: Fix the round-trip test for RP handling.
Fix the round-trip handling. This is still missing for message
types in other directions as this would require me writing test
cases first. I will get to that.
Diffstat (limited to 'SMSTests.st')
-rw-r--r-- | SMSTests.st | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SMSTests.st b/SMSTests.st index 47e33c8..0ba290d 100644 --- a/SMSTests.st +++ b/SMSTests.st @@ -35,7 +35,7 @@ TestCase subclass: GSM411Test [ assert: dec toMessage asByteArray = inp. self - assert: dec rpMessage toMessage asByteArray = dec userData data. + assert: dec rpMessage toMessage asByteArray equals: dec userData data. ] testCPData2 [ @@ -46,5 +46,8 @@ TestCase subclass: GSM411Test [ self assert: dec type = GSMCpData messageType; assert: dec toMessage asByteArray = inp. + + self + assert: dec rpMessage toMessage asByteArray equals: dec userData data. ] ] |