aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/testContextSwitchingTypes.erl
diff options
context:
space:
mode:
authorKenneth Lundin <[email protected]>2010-09-01 15:09:31 +0200
committerBjörn Gustavsson <[email protected]>2010-09-07 15:54:01 +0200
commit210fbb984619e6a6bb1122b7a6f72f54fb72effb (patch)
treefa5964ff764fa94e6125f6e4ca63546821be1a1a /lib/asn1/test/testContextSwitchingTypes.erl
parent96db19557ac894cffcaa18e8f1191d387a5b05ea (diff)
downloadotp-210fbb984619e6a6bb1122b7a6f72f54fb72effb.tar.gz
otp-210fbb984619e6a6bb1122b7a6f72f54fb72effb.tar.bz2
otp-210fbb984619e6a6bb1122b7a6f72f54fb72effb.zip
Add support for ExtensionAdditionGroup notation in nested types as well
In the previous version support for ExtensionAdditionGroups (i.e [[...]]) was added but it did not handle the occurence of the notation in nested types. Now this is handled as well and the support is hopefully complete. Also cleanup of warnings for obsolete guard functions in test suites.
Diffstat (limited to 'lib/asn1/test/testContextSwitchingTypes.erl')
-rw-r--r--lib/asn1/test/testContextSwitchingTypes.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/asn1/test/testContextSwitchingTypes.erl b/lib/asn1/test/testContextSwitchingTypes.erl
index ef14397d1e..399c9ecaf7 100644
--- a/lib/asn1/test/testContextSwitchingTypes.erl
+++ b/lib/asn1/test/testContextSwitchingTypes.erl
@@ -1,19 +1,19 @@
%%
%% %CopyrightBegin%
-%%
-%% Copyright Ericsson AB 2001-2009. All Rights Reserved.
-%%
+%%
+%% Copyright Ericsson AB 2001-2010. All Rights Reserved.
+%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License along with this software. If not, it can be
%% retrieved online at http://www.erlang.org/.
-%%
+%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
%% the License for the specific language governing rights and limitations
%% under the License.
-%%
+%%
%% %CopyrightEnd%
%%
%%
@@ -71,13 +71,13 @@ check_EXTERNAL_Idef({Alt,_}) when Alt=='context-negotiation';
ok;
check_EXTERNAL_Idef(I) ->
{error,"failed on identification alternative",I}.
-check_EXTERNAL_DVD(DVD) when list(DVD) ->
+check_EXTERNAL_DVD(DVD) when is_list(DVD) ->
ok;
check_EXTERNAL_DVD(asn1_NOVALUE) ->
ok;
check_EXTERNAL_DVD(DVD) ->
{error,"failed on data-value-descriptor alternative",DVD}.
-check_EXTERNAL_DV(DV) when list(DV) ->
+check_EXTERNAL_DV(DV) when is_list(DV) ->
ok;
check_EXTERNAL_DV(DV) ->
{error,"failed on data-value alternative",DV}.