aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/error_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-12-05 12:07:10 +0100
committerBjörn Gustavsson <[email protected]>2015-01-12 12:22:56 +0100
commit831b45783976886675f853bca8a9a75ec39cda5c (patch)
tree6cac0f80023b4308cf129270c08d8b37737a15d8 /lib/asn1/test/error_SUITE.erl
parent7d390a1ec41268978fbd9ad3727392ad569e8d24 (diff)
downloadotp-831b45783976886675f853bca8a9a75ec39cda5c.tar.gz
otp-831b45783976886675f853bca8a9a75ec39cda5c.tar.bz2
otp-831b45783976886675f853bca8a9a75ec39cda5c.zip
Move checking of UNIQUE & DEFAULT error to asn1ct_check
To keep the error reporting code in asn1ct_parser2 simple, we only want to handle pure syntactic errors. Therefore, move the check that UNIQUE and DEFAULT are not applied to the same field to asn1ct_check.
Diffstat (limited to 'lib/asn1/test/error_SUITE.erl')
-rw-r--r--lib/asn1/test/error_SUITE.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/asn1/test/error_SUITE.erl b/lib/asn1/test/error_SUITE.erl
index fc5f2dfe43..331d3607af 100644
--- a/lib/asn1/test/error_SUITE.erl
+++ b/lib/asn1/test/error_SUITE.erl
@@ -112,10 +112,13 @@ classes(Config) ->
P = {M,
<<"Classes DEFINITIONS AUTOMATIC TAGS ::= BEGIN\n"
" LowerCase ::= CLASS { &id INTEGER UNIQUE }\n"
+ " CL ::= CLASS { &id INTEGER UNIQUE DEFAULT 42}\n"
"END\n">>},
{error,
- [{structured_error,{M,2},asn1ct_check,{illegal_class_name,
- 'LowerCase'}}
+ [{structured_error,{M,2},asn1ct_check,
+ {illegal_class_name,'LowerCase'}},
+ {structured_error,{M,3},asn1ct_check,
+ {unique_and_default,id}}
]} = run(P, Config),
ok.