diff options
author | Björn Gustavsson <[email protected]> | 2014-10-28 14:47:50 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-01-12 11:40:25 +0100 |
commit | 0775ee9c7dc4957302a756b8b37cf94e372d3ecc (patch) | |
tree | df646754c4e472fe6a17cd26a70a7348266e63e1 /lib/asn1/test/error_SUITE.erl | |
parent | 572b880ce6ad60ca0ad63aa9b4f8da01702834cf (diff) | |
download | otp-0775ee9c7dc4957302a756b8b37cf94e372d3ecc.tar.gz otp-0775ee9c7dc4957302a756b8b37cf94e372d3ecc.tar.bz2 otp-0775ee9c7dc4957302a756b8b37cf94e372d3ecc.zip |
Improve handling of BIT STRING values
Diffstat (limited to 'lib/asn1/test/error_SUITE.erl')
-rw-r--r-- | lib/asn1/test/error_SUITE.erl | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/asn1/test/error_SUITE.erl b/lib/asn1/test/error_SUITE.erl index 4534abc0c4..d83131db92 100644 --- a/lib/asn1/test/error_SUITE.erl +++ b/lib/asn1/test/error_SUITE.erl @@ -601,6 +601,13 @@ values(Config) -> " int6 INTEGER ::= holder-2.&undefined-field\n" " int7 INTEGER ::= holder-2.&UndefinedField.&id\n" + " bs1 BIT STRING ::= 42\n" + " bs2 BIT STRING ::= {a,b}\n" + " bs3 BIT STRING {a(0),z(25)} ::= {a,b}\n" + " bs4 BIT STRING {a(0),z(25)} ::= int\n" + " bs5 BIT STRING ::= holder-2.&str\n" + " bs6 BIT STRING ::= holder-2.&obj\n" + " HOLDER ::= CLASS {\n" " &str IA5String,\n" " &obj HOLDER OPTIONAL\n" @@ -638,7 +645,19 @@ values(Config) -> {structured_error,{M,17},asn1ct_check, {undefined_field,'undefined-field'}}, {structured_error,{M,18},asn1ct_check, - {undefined_field,'UndefinedField'}} + {undefined_field,'UndefinedField'}}, + {structured_error,{M,19},asn1ct_check, + illegal_bitstring_value}, + {structured_error,{M,20},asn1ct_check, + illegal_bitstring_value}, + {structured_error,{M,21},asn1ct_check, + illegal_bitstring_value}, + {structured_error,{M,22},asn1ct_check, + illegal_bitstring_value}, + {structured_error,{M,23},asn1ct_check, + illegal_bitstring_value}, + {structured_error,{M,24},asn1ct_check, + illegal_bitstring_value} ] } = run(P, Config), ok. |