aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/testInfObj.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-25 09:24:41 +0100
committerBjörn Gustavsson <[email protected]>2013-05-31 14:52:15 +0200
commit1aad483e439410aeee17c966991754f65f6852a9 (patch)
tree946a4e7329ea7b7d9bc32513ab4af0e6340bc6cf /lib/asn1/test/testInfObj.erl
parent78bf2e6ab930212e49a291b9991bd3bfc886bf0e (diff)
downloadotp-1aad483e439410aeee17c966991754f65f6852a9.tar.gz
otp-1aad483e439410aeee17c966991754f65f6852a9.tar.bz2
otp-1aad483e439410aeee17c966991754f65f6852a9.zip
UPER: Fix bug in encoding/decoding of default types
The wrong backend was used.
Diffstat (limited to 'lib/asn1/test/testInfObj.erl')
-rw-r--r--lib/asn1/test/testInfObj.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/asn1/test/testInfObj.erl b/lib/asn1/test/testInfObj.erl
index 6318bf44b5..97e6a9aaa9 100644
--- a/lib/asn1/test/testInfObj.erl
+++ b/lib/asn1/test/testInfObj.erl
@@ -46,7 +46,12 @@ main(_Erule) ->
first=13,
second=true}},
- roundtrip('RANAPextract1', 'InitiatingMessage2', Val3).
+ roundtrip('RANAPextract1', 'InitiatingMessage2', Val3),
+
+ roundtrip('InfObj', 'MyPdu', {'MyPdu',42,12,false,"string"}),
+ roundtrip('InfObj', 'MyPdu', {'MyPdu',{'Seq',1023,"hello"},
+ 42,true,"longer string"}).
+
roundtrip(M, T, V) ->
{ok,Enc} = M:encode(T, V),