aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/testInfObjExtract.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-11-06 13:04:52 +0100
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:27 +0100
commitfa8dfc8aa8ae99526a3dc1faa2baaadff51117fb (patch)
treef474ee63df4a992053842e1e3f5b9e6d7de762ee /lib/asn1/test/testInfObjExtract.erl
parent1b8e14c290d1b7fb8b89b3139ab10c4623afb031 (diff)
downloadotp-fa8dfc8aa8ae99526a3dc1faa2baaadff51117fb.tar.gz
otp-fa8dfc8aa8ae99526a3dc1faa2baaadff51117fb.tar.bz2
otp-fa8dfc8aa8ae99526a3dc1faa2baaadff51117fb.zip
Rewrite handling of ObjectSetFromObjects
The ObjectSetFromObjects construct is implemented using the object_set_from_objects() function, which is similar to get_fieldname_element(). Rewrite the ObjectSetFromObjects handling to use get_fieldname_element() to share more code.
Diffstat (limited to 'lib/asn1/test/testInfObjExtract.erl')
-rw-r--r--lib/asn1/test/testInfObjExtract.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/asn1/test/testInfObjExtract.erl b/lib/asn1/test/testInfObjExtract.erl
index d3ea368391..f86626d037 100644
--- a/lib/asn1/test/testInfObjExtract.erl
+++ b/lib/asn1/test/testInfObjExtract.erl
@@ -32,6 +32,14 @@ main() ->
roundtrip_data_object_13('DataSeq-5'),
roundtrip_data_object_13('DataSeq-6'),
+ roundtrip('ObjClassSeq-1', {'ObjClassSeq-1',1,true}),
+ roundtrip('ObjClassSeq-1', {'ObjClassSeq-1',2,true}),
+
+ roundtrip_error('ObjClassSeq-1', {'ObjClassSeq-1',0,false}),
+ roundtrip_error('ObjClassSeq-1', {'ObjClassSeq-1',3,true}),
+ roundtrip_error('ObjClassSeq-1', {'ObjClassSeq-1',4,false}),
+ roundtrip_error('ObjClassSeq-1', {'ObjClassSeq-1',5,true}),
+
ok.
roundtrip_data_object_13(SeqType) ->