aboutsummaryrefslogtreecommitdiffstats
path: root/Tests.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 19:36:41 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:04:20 +0100
commit4e4a179a0f10b247e325924fecdda4fe3ca90498 (patch)
treeaed01062c54705d8bc7ffd0336c6f8c4ca26ec94 /Tests.st
parent528231cfb6928e8464e65ee6c19b96a9a4420b67 (diff)
SCCP: Test parsing the address from a byte array
Diffstat (limited to 'Tests.st')
-rw-r--r--Tests.st6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests.st b/Tests.st
index ccc142a..893def4 100644
--- a/Tests.st
+++ b/Tests.st
@@ -33,6 +33,12 @@ TestCase subclass: SCCPTests [
self assert: msg = #(1 191 0 3 2 2 4 2 66 254 15 4 49 50 51 52 0) asByteArray
]
+
+ testAddrFromByteArray [
+ | byte |
+ byte := #(191 0 3) asByteArray.
+ self assert: (SCCPAddrReference fromByteArray: byte) = 16r0300BF
+ ]
]
TestCase subclass: IPATests [