aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2006-10-21 05:54:08 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2006-10-21 05:54:08 +0000
commit8e8003ac0c33377b4224d0cf9f43016015f28d18 (patch)
tree57fae73b8a81b204a0940c5039798be858758600
parent850dbbf62f81bde634473382f14844608d15ba7c (diff)
multiple constraints of different type
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1261 59561ff5-6e30-0410-9f3c-9617f08c8826
-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