tests for ANY type

This commit is contained in:
Lev Walkin 2004-09-05 10:44:23 +00:00
parent b656f1a335
commit 4d8f18a627
4 changed files with 69 additions and 0 deletions

19
tests/61-any-1-SE.asn1 Normal file
View File

@ -0,0 +1,19 @@
-- SE: Semantic error
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .61
ModuleTestBadANY1
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 61 }
DEFINITIONS ::=
BEGIN
T ::= SEQUENCE {
i1 INTEGER OPTIONAL,
any ANY
}
END

19
tests/62-any-OK.asn1 Normal file
View File

@ -0,0 +1,19 @@
-- OK: Everything is fine
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .62
ModuleTestANYSyntax
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 62 }
DEFINITIONS IMPLICIT TAGS ::=
BEGIN
T ::= SEQUENCE {
i INTEGER,
any [1] ANY -- Converted into [1] EXPLICIT ANY
}
END

13
tests/62-any-OK.asn1.-EF Normal file
View File

@ -0,0 +1,13 @@
ModuleTestANYSyntax {iso org(3) dod(6) internet(1) private(4)
enterprise(1) spelio(9363) software(1) asn1c(5) test(1)
62 }
DEFINITIONS IMPLICIT TAGS ::=
BEGIN
T ::= SEQUENCE {
i INTEGER,
any [1] EXPLICIT ANY
}
END

18
tests/63-any-2-SE.asn1 Normal file
View File

@ -0,0 +1,18 @@
-- SE: Semantic error
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .63
ModuleTestBadANY2
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 62 }
DEFINITIONS ::=
BEGIN
T ::= SEQUENCE {
any [1] IMPLICIT ANY
}
END