aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-10-21 05:54:08 +0000
committerLev Walkin <vlm@lionet.info>2006-10-21 05:54:08 +0000
commit8e81b7669e04ceac94c37f8bc9863b4ce216fb13 (patch)
tree57fae73b8a81b204a0940c5039798be858758600 /tests
parent5d1daaa59e42faacc080b6c67afdb6bbdcd80f86 (diff)
multiple constraints of different type
Diffstat (limited to 'tests')
-rw-r--r--tests/124-multiconstraint-OK.asn116
-rw-r--r--tests/124-multiconstraint-OK.asn1.-EF8
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/124-multiconstraint-OK.asn1 b/tests/124-multiconstraint-OK.asn1
new file mode 100644
index 00000000..577a1426
--- /dev/null
+++ b/tests/124-multiconstraint-OK.asn1
@@ -0,0 +1,16 @@
+
+-- OK: Everything is fine
+
+-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
+-- .spelio.software.asn1c.test (9363.1.5.1)
+-- .124
+
+ModuleMultiConstraint
+ { iso org(3) dod(6) internet (1) private(4) enterprise(1)
+ spelio(9363) software(1) asn1c(5) test(1) 124 }
+ DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+ T ::= VisibleString (PATTERN "^[a-z]+$") (CONSTRAINED BY { ... })
+
+END
diff --git a/tests/124-multiconstraint-OK.asn1.-EF b/tests/124-multiconstraint-OK.asn1.-EF
new file mode 100644
index 00000000..efd3214b
--- /dev/null
+++ b/tests/124-multiconstraint-OK.asn1.-EF
@@ -0,0 +1,8 @@
+ModuleMultiConstraint { iso org(3) dod(6) internet(1) private(4) enterprise(1)
+ spelio(9363) software(1) asn1c(5) test(1) 124 }
+DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+T ::= VisibleString (PATTERN "^[a-z]+$")(CONSTRAINED BY { ... })
+
+END