aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-12-01 12:35:33 +0100
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:29 +0100
commit83ba2c5e84cee40698489c8e740c96adc07b1d44 (patch)
tree7a91a3619dd83861480a07d15013eef757aa3a2a /lib/asn1/test
parente9b758a50a648e4d0a54963a6530a4b3cb3f68ce (diff)
downloadotp-83ba2c5e84cee40698489c8e740c96adc07b1d44.tar.gz
otp-83ba2c5e84cee40698489c8e740c96adc07b1d44.tar.bz2
otp-83ba2c5e84cee40698489c8e740c96adc07b1d44.zip
Modernize error handling for BOOLEAN
Diffstat (limited to 'lib/asn1/test')
-rw-r--r--lib/asn1/test/error_SUITE.erl23
1 files changed, 15 insertions, 8 deletions
diff --git a/lib/asn1/test/error_SUITE.erl b/lib/asn1/test/error_SUITE.erl
index d41134e5cb..c097943c75 100644
--- a/lib/asn1/test/error_SUITE.erl
+++ b/lib/asn1/test/error_SUITE.erl
@@ -778,6 +778,9 @@ values(Config) ->
" bs5 BIT STRING ::= holder-2.&str\n"
" bs6 BIT STRING ::= holder-2.&obj\n"
+ " b1 BOOLEAN ::= 42\n"
+ " b2 BOOLEAN ::= {a,b}\n"
+
" HOLDER ::= CLASS {\n"
" &str IA5String,\n"
" &obj HOLDER OPTIONAL\n"
@@ -820,20 +823,24 @@ values(Config) ->
{structured_error,{M,18},asn1ct_check,
{undefined_field,'UndefinedField'}},
{structured_error,{M,19},asn1ct_check,
- illegal_bitstring_value},
+ {illegal_value, "BIT STRING"}},
{structured_error,{M,20},asn1ct_check,
- illegal_bitstring_value},
+ {illegal_value, "BIT STRING"}},
{structured_error,{M,21},asn1ct_check,
- illegal_bitstring_value},
+ {illegal_value, "BIT STRING"}},
{structured_error,{M,22},asn1ct_check,
- illegal_bitstring_value},
+ {illegal_value, "BIT STRING"}},
{structured_error,{M,23},asn1ct_check,
- illegal_bitstring_value},
+ {illegal_value, "BIT STRING"}},
{structured_error,{M,24},asn1ct_check,
- illegal_bitstring_value},
- {structured_error,{M,31},asn1ct_check,
+ {illegal_value, "BIT STRING"}},
+ {structured_error,{M,25},asn1ct_check,
+ {illegal_value, "BOOLEAN"}},
+ {structured_error,{M,26},asn1ct_check,
+ {illegal_value, "BOOLEAN"}},
+ {structured_error,{M,33},asn1ct_check,
illegal_external_value},
- {structured_error,{M,32},asn1ct_check,
+ {structured_error,{M,34},asn1ct_check,
illegal_external_value}
]
} = run(P, Config),