aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data
diff options
context:
space:
mode:
authorGustav Simonsson <[email protected]>2012-07-11 11:50:46 +0200
committerGustav Simonsson <[email protected]>2012-07-11 11:50:46 +0200
commit7a70f331e65e831585afa195bf29ef7d823e55f6 (patch)
treec4865debd6088f96a2838c455548a0b59e9a29d1 /lib/asn1/test/asn1_SUITE_data
parenteac9c3494ce4d684b09779f075317e8943a7928b (diff)
downloadotp-7a70f331e65e831585afa195bf29ef7d823e55f6.tar.gz
otp-7a70f331e65e831585afa195bf29ef7d823e55f6.tar.bz2
otp-7a70f331e65e831585afa195bf29ef7d823e55f6.zip
Make n2n option work for enumerated types without extension
markers. Add test enumeration types for testing n2n option when using the name2num and num2name functions on an enumeration value not in the extension root of an enumeration type with extension marker.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/EnumN2N.asn125
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/EnumN2N.asn1 b/lib/asn1/test/asn1_SUITE_data/EnumN2N.asn1
new file mode 100644
index 0000000000..a724f2f3f5
--- /dev/null
+++ b/lib/asn1/test/asn1_SUITE_data/EnumN2N.asn1
@@ -0,0 +1,25 @@
+EnumN2N DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+NoExt ::= ENUMERATED {
+ blue(0),
+ red(1),
+ green(2)
+}
+
+Ext ::= ENUMERATED {
+ blue(0),
+ red(1),
+ green(2),
+ ...
+}
+
+Ext2 ::= ENUMERATED {
+ blue(0),
+ red(1),
+ green(2),
+ ...,
+ orange(7)
+}
+
+END