diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-28 10:41:59 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-28 10:41:59 +0100 |
commit | 5a7fef5c6d9b429a83ff50afc3cfe456e0463d79 (patch) | |
tree | 32a01401c309a2c1f55d3be87cc57eff6dea1d3b /Tests.st | |
parent | 7185fd811096a079c1e140fe9aad3ba37b186a72 (diff) |
SCCP: Implement a RLC command
Diffstat (limited to 'Tests.st')
-rw-r--r-- | Tests.st | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -94,6 +94,20 @@ TestCase subclass: SCCPTests [ self assert: rlsd toMessage asByteArray = target. ] + testRlc [ + | target rlc | + + target := #(5 1 8 119 62 4 5 ) asByteArray. + rlc := SCCPConnectionReleaseComplete + initWithDst: 16r770801 src: 16r05043E. + self assert: rlc toMessage asByteArray = target. + + rlc := SCCPMessage decode: target. + self assert: rlc dst = 16r770801. + self assert: rlc src = 16r05043E. + self assert: rlc toMessage asByteArray = target. + ] + testUdt [ | target udt called calling | target := #(9 0 3 7 11 4 67 7 0 254 4 67 92 0 254 3 1 2 3) asByteArray. |