aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/testContextSwitchingTypes.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-11-27 10:22:56 +0100
committerDan Gudmundsson <[email protected]>2014-11-27 10:22:56 +0100
commit048ee9e06afb36d1711b824d1786400b287256f0 (patch)
tree24bd377eeb78fd282d9095d8a8b688aa25430e65 /lib/asn1/test/testContextSwitchingTypes.erl
parentaca180838c407296613c944dd6cd4df3fa1fe708 (diff)
parent00d216799845f2a38dfb71ad0979c5bcab74c696 (diff)
downloadotp-048ee9e06afb36d1711b824d1786400b287256f0.tar.gz
otp-048ee9e06afb36d1711b824d1786400b287256f0.tar.bz2
otp-048ee9e06afb36d1711b824d1786400b287256f0.zip
Merge branch 'dgud/asn1/fix-seqtag/OTP-12326' into maint
* dgud/asn1/fix-seqtag/OTP-12326: asn1: Fix EXTERNAL (1994 variant) type conversion
Diffstat (limited to 'lib/asn1/test/testContextSwitchingTypes.erl')
-rw-r--r--lib/asn1/test/testContextSwitchingTypes.erl14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/asn1/test/testContextSwitchingTypes.erl b/lib/asn1/test/testContextSwitchingTypes.erl
index bdd6883dac..61d1fbdd69 100644
--- a/lib/asn1/test/testContextSwitchingTypes.erl
+++ b/lib/asn1/test/testContextSwitchingTypes.erl
@@ -24,11 +24,21 @@
-include_lib("test_server/include/test_server.hrl").
test(Config) ->
- ValT = 'ContextSwitchingTypes':'val1-T'(),
- check_EXTERNAL(enc_dec('T', ValT)),
+ ValT_1 = 'ContextSwitchingTypes':'val1-T'(),
+ check_EXTERNAL(enc_dec('T', ValT_1)),
+
+ ValT_2 = 'ContextSwitchingTypes':'val2-T'(),
+ check_EXTERNAL(enc_dec('T', ValT_2)),
+
+ ValT_3 = 'ContextSwitchingTypes':'val3-T'(),
+ check_EXTERNAL(enc_dec('T', ValT_3)),
+
+ ValT_4 = 'ContextSwitchingTypes':'val4-T'(),
+ check_EXTERNAL(enc_dec('T', ValT_4)),
{ok,ValT2} = asn1ct:value('ContextSwitchingTypes', 'T',
[{i,?config(case_dir, Config)}]),
+ io:format("ValT2 ~p~n",[ValT2]),
check_EXTERNAL(enc_dec('T', ValT2)),
ValEP = 'ContextSwitchingTypes':'val1-EP'(),