From 1bad159a5f08af104d56797acc3c1f79345071ec Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Thu, 21 Sep 2006 01:58:24 +0000 Subject: per constraints checking --- tests/118-per-constraint-OK.asn1 | 7 ++++++- tests/118-per-constraint-OK.asn1.-EFprint-constraints | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3