aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2006-09-21 01:58:24 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2006-09-21 01:58:24 +0000
commitb18823cedd6b8567d9a752ae2ca1211e171e3c3a (patch)
treec5f0d73821f763fcbb9d8cd5b019a92f1fd4e445 /tests
parent4baece1338649bd4847d3622ff9979bc0ef7750c (diff)
per constraints checking
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1234 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'tests')
-rw-r--r--tests/118-per-constraint-OK.asn17
-rw-r--r--tests/118-per-constraint-OK.asn1.-EFprint-constraints5
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/118-per-constraint-OK.asn1 b/tests/118-per-constraint-OK.asn1
index d7c840b6..b0604f7b 100644
--- a/tests/118-per-constraint-OK.asn1
+++ b/tests/118-per-constraint-OK.asn1
@@ -11,6 +11,11 @@ ModuleConstraintPrecedence
DEFINITIONS ::=
BEGIN
- C ::= IA5String (SIZE(10) ^ FROM("A".."D") | SIZE(20) ^ FROM("D".."F"))
+ C ::= IA5String (SIZE(10) ^ FROM("A".."D")
+ | SIZE(20) ^ FROM("D".."F"))
+
+ P ::= IA5String (FROM("AB") ^ SIZE(1..2)
+ | FROM("DE") ^ SIZE(3)
+ | FROM("AXE") ^ SIZE(1..5))
END
diff --git a/tests/118-per-constraint-OK.asn1.-EFprint-constraints b/tests/118-per-constraint-OK.asn1.-EFprint-constraints
index cd9d33e8..fdeb3386 100644
--- a/tests/118-per-constraint-OK.asn1.-EFprint-constraints
+++ b/tests/118-per-constraint-OK.asn1.-EFprint-constraints
@@ -8,4 +8,9 @@ C ::= IA5String (SIZE(10) ^ FROM("A".."D") | SIZE(20) ^ FROM("D".."F"))
-- Practical constraints (C): (MIN..MAX) (SIZE(10 | 20)) (FROM("A".."F"))
-- PER-visible constraints (C): (MIN..MAX) (SIZE(10 | 20)) (FROM("A".."F"))
+P ::= IA5String (FROM("AB") ^ SIZE(1..2) | FROM("DE") ^ SIZE(3) | FROM("AXE") ^ SIZE(1..5))
+-- Combined constraints: (FROM("AB") ^ SIZE(1..2) | FROM("DE") ^ SIZE(3) | FROM("AXE") ^ SIZE(1..5))
+-- Practical constraints (P): (MIN..MAX) (SIZE(1..5)) (FROM("A".."B" | "D".."E" | "X"))
+-- PER-visible constraints (P): (MIN..MAX) (SIZE(1..5)) (FROM("A".."B" | "D".."E" | "X"))
+
END