aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/testSeqOfChoExt.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asn1/test/testSeqOfChoExt.erl')
-rw-r--r--lib/asn1/test/testSeqOfChoExt.erl15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/asn1/test/testSeqOfChoExt.erl b/lib/asn1/test/testSeqOfChoExt.erl
new file mode 100644
index 0000000000..1e72c60841
--- /dev/null
+++ b/lib/asn1/test/testSeqOfChoExt.erl
@@ -0,0 +1,15 @@
+-module(testSeqOfChoExt).
+
+-export([main/1]).
+
+%-record('Seq2', { octstr = asn1_NOVALUE }).
+%-record('Seq1', { int, soc }).
+
+main(_Rules) ->
+ roundtrip('SeqOfChoExt':seq1()).
+
+roundtrip(Value) ->
+ roundtrip(Value, Value).
+roundtrip(Value, Exp) ->
+ Type = element(1,Value),
+ asn1_test_lib:roundtrip('SeqOfChoExt', Type, Value, Exp).