smalltalk
/
osmo-st-asn1
Archived
1
0
Fork 0

misc: Add proper categories to ease porting to Pharo

This commit is contained in:
Holger Hans Peter Freyther 2013-03-31 14:04:07 +02:00
parent 59f3d7ac47
commit 4e3227730b
1 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,8 @@
" "
TestCase subclass: BERTagTest [ TestCase subclass: BERTagTest [
<category: 'OsmoASN1-Tests'>
testSimpleTag [ testSimpleTag [
<category: 'test'> <category: 'test'>
self assert: (BERTag parseFrom: #(16rA1) asByteArray readStream) asTuple = #(2 true 1). self assert: (BERTag parseFrom: #(16rA1) asByteArray readStream) asTuple = #(2 true 1).
@ -43,6 +45,8 @@ TestCase subclass: BERTagTest [
] ]
TestCase subclass: BERLengthTest [ TestCase subclass: BERLengthTest [
<category: 'OsmoASN1-Tests'>
testSimpleLengthRead [ testSimpleLengthRead [
| read | | read |
read := BERLength parseFrom: #(10) asByteArray readStream. read := BERLength parseFrom: #(10) asByteArray readStream.
@ -76,6 +80,8 @@ TestCase subclass: BERLengthTest [
] ]
TestCase subclass: BERTLVStreamTest [ TestCase subclass: BERTLVStreamTest [
<category: 'OsmoASN1-Tests'>
testParseLength [ testParseLength [
| data stream value | | data stream value |
"I parse a simple example." "I parse a simple example."
@ -124,6 +130,7 @@ TestCase subclass: BERTLVStreamTest [
] ]
TestCase subclass: DERTLVStreamTest [ TestCase subclass: DERTLVStreamTest [
<category: 'OsmoASN1-Tests'>
<comment: 'I test DER encoding to some degree'> <comment: 'I test DER encoding to some degree'>
testDecodeEncodeAll [ testDecodeEncodeAll [