diff options
author | Björn Gustavsson <[email protected]> | 2013-03-26 16:37:15 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-05-31 14:52:22 +0200 |
commit | 19b84eb5f8a2b344447cd8204cdd490d0d9123ff (patch) | |
tree | 8230c73e7a0148c5512b32af1371115dd43b4779 | |
parent | 8b68ddddd113ca304690136efb6889fc565aeb44 (diff) | |
download | otp-19b84eb5f8a2b344447cd8204cdd490d0d9123ff.tar.gz otp-19b84eb5f8a2b344447cd8204cdd490d0d9123ff.tar.bz2 otp-19b84eb5f8a2b344447cd8204cdd490d0d9123ff.zip |
Extend tests to cover more code in asn1ct_check
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/SeqDefault.asn1 | 11 | ||||
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/SetDefault.asn1 | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/SeqDefault.asn1 b/lib/asn1/test/asn1_SUITE_data/SeqDefault.asn1 index 99e79da972..5c8583884a 100644 --- a/lib/asn1/test/asn1_SUITE_data/SeqDefault.asn1 +++ b/lib/asn1/test/asn1_SUITE_data/SeqDefault.asn1 @@ -74,4 +74,15 @@ SeqIn ::= SEQUENCE intIn INTEGER DEFAULT 12 } +SeqExp ::= SEQUENCE +{ + bool BOOLEAN, + ..., + int INTEGER +} + +SeqDef4 ::= SEQUENCE { + seq SeqExp DEFAULT { bool TRUE, int 42 } +} + END diff --git a/lib/asn1/test/asn1_SUITE_data/SetDefault.asn1 b/lib/asn1/test/asn1_SUITE_data/SetDefault.asn1 index cb9e0ead62..0bbe301ae7 100644 --- a/lib/asn1/test/asn1_SUITE_data/SetDefault.asn1 +++ b/lib/asn1/test/asn1_SUITE_data/SetDefault.asn1 @@ -30,4 +30,15 @@ SetIn ::= SET intIn INTEGER DEFAULT 12 } +SetDef4 ::= SET { + set SetExt DEFAULT { intIn 42, boolIn TRUE } +} + +SetExt ::= SET +{ + boolIn BOOLEAN, + ..., + intIn INTEGER +} + END |