added tests for parametrization

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@263 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-09-05 10:44:13 +00:00
parent 2a7c1b303e
commit 2d75d9e585
2 changed files with 43 additions and 0 deletions

23
tests/58-param-OK.asn1 Normal file
View File

@ -0,0 +1,23 @@
-- OK: Everything is fine
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .58
ModuleTestParam
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 58 }
DEFINITIONS ::=
BEGIN
DirectoryString { INTEGER:maxSize } ::= CHOICE {
teletexString TeletexString (SIZE(1..maxSize)),
utf8String UTF8String (SIZE(1..maxSize))
}
DS1 ::= DirectoryString { ub-name }
ub-name INTEGER ::= 128
END

View File

@ -0,0 +1,20 @@
ModuleTestParam {iso org(3) dod(6) internet(1) private(4)
enterprise(1) spelio(9363) software(1) asn1c(5) test(1)
58 }
DEFINITIONS ::=
BEGIN
DirectoryString{INTEGER:maxSize} ::= CHOICE {
teletexString TeletexString (SIZE(1..maxSize)),
utf8String UTF8String (SIZE(1..maxSize))
}
DS1 ::= CHOICE {
teletexString TeletexString (SIZE(1..128)),
utf8String UTF8String (SIZE(1..128))
}
ub-name INTEGER ::= 128
END