diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-15 19:36:41 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-15 20:04:20 +0100 |
commit | 4e4a179a0f10b247e325924fecdda4fe3ca90498 (patch) | |
tree | aed01062c54705d8bc7ffd0336c6f8c4ca26ec94 /Tests.st | |
parent | 528231cfb6928e8464e65ee6c19b96a9a4420b67 (diff) |
SCCP: Test parsing the address from a byte array
Diffstat (limited to 'Tests.st')
-rw-r--r-- | Tests.st | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 [ |