aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-09-21 01:58:24 +0000
committerLev Walkin <vlm@lionet.info>2006-09-21 01:58:24 +0000
commit1bad159a5f08af104d56797acc3c1f79345071ec (patch)
treec5f0d73821f763fcbb9d8cd5b019a92f1fd4e445
parent5b62ca848d3873a2835eaf5f84d7508b3bafb92a (diff)
per constraints checking
-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