aboutsummaryrefslogtreecommitdiffstats
path: root/Tests.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-24 16:28:55 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-24 21:50:06 +0100
commit5268577afb5f682aa6f309e334c7aecb2703f90d (patch)
tree0902d4108c4a93c6dc8088abef1232d17668ed00 /Tests.st
parentd8f0148f817cd4eccdc10b284b31eaf5d509072a (diff)
SCCP: Implement the SCCPConnectionReleased
Diffstat (limited to 'Tests.st')
-rw-r--r--Tests.st16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests.st b/Tests.st
index ec08d5a..4fa2be2 100644
--- a/Tests.st
+++ b/Tests.st
@@ -78,6 +78,22 @@ TestCase subclass: SCCPTests [
self assert: cc toMessage asByteArray = target.
]
+ testRlsd [
+ | target rlsd |
+
+ target := #(4 154 2 0 66 5 5 0 1 0 ) asByteArray.
+ rlsd := SCCPConnectionReleased
+ initWithDst: 16r0029A src: 16r50542
+ cause: 0.
+ self assert: rlsd toMessage asByteArray = target.
+
+ rlsd := SCCPMessage decode: target.
+ self assert: rlsd dst = 16r0029A.
+ self assert: rlsd src = 16r50542.
+ self assert: rlsd cause = 0.
+ self assert: rlsd toMessage asByteArray = target.
+ ]
+
testAddrFromByteArray [
| byte |
byte := #(191 0 3) asByteArray.