diff options
author | Björn Gustavsson <[email protected]> | 2013-10-18 14:10:39 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-10-18 14:10:39 +0200 |
commit | 666b46a914ddc23ad666222476163c46c06d2b14 (patch) | |
tree | 41ec1f7a949aaae2d4b5ec531c00059c41b9960d /lib/asn1/test/testParamBasic.erl | |
parent | 67603840fe02617e9ee3f6fd46b203b94ac5e3c5 (diff) | |
parent | 6baa1883a9c7f4d9b4be76d1375cf8b2cc614797 (diff) | |
download | otp-666b46a914ddc23ad666222476163c46c06d2b14.tar.gz otp-666b46a914ddc23ad666222476163c46c06d2b14.tar.bz2 otp-666b46a914ddc23ad666222476163c46c06d2b14.zip |
Merge branch 'bjorn/asn1/fix-default-values/OTP-11319' into maint
* bjorn/asn1/fix-default-values/OTP-11319:
Fix broken handling of default values for BIT STRINGs
Diffstat (limited to 'lib/asn1/test/testParamBasic.erl')
-rw-r--r-- | lib/asn1/test/testParamBasic.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/asn1/test/testParamBasic.erl b/lib/asn1/test/testParamBasic.erl index 3a55408e94..3db89ca174 100644 --- a/lib/asn1/test/testParamBasic.erl +++ b/lib/asn1/test/testParamBasic.erl @@ -38,7 +38,9 @@ main(Rules) -> <<48,3,128,1,11>> = roundtrip_enc('T11', #'T11'{number=11,string="hej"}), <<48,3,128,1,11>> = - roundtrip_enc('T12', #'T12'{number=11,string=[1,0,1,0]}); + roundtrip_enc('T12', + #'T12'{number=11,string=[1,0,1,0]}, + #'T12'{number=11,string = <<10:4>>}); _ -> ok end, ok. @@ -48,3 +50,6 @@ roundtrip(Type, Value) -> roundtrip_enc(Type, Value) -> asn1_test_lib:roundtrip_enc('ParamBasic', Type, Value). + +roundtrip_enc(Type, Value, Expected) -> + asn1_test_lib:roundtrip_enc('ParamBasic', Type, Value, Expected). |