diff options
author | Björn Gustavsson <[email protected]> | 2013-10-18 14:23:39 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-10-18 14:23:39 +0200 |
commit | 5a69967bf89327368cd45e000df054953fa74f10 (patch) | |
tree | 41d79a3dbd953e21c0558f60c9f311974033c80b /lib/asn1/test/testParamBasic.erl | |
parent | 0aae26d8df1aba1f3a8551e4bf1fc097f13a0bea (diff) | |
parent | 666b46a914ddc23ad666222476163c46c06d2b14 (diff) | |
download | otp-5a69967bf89327368cd45e000df054953fa74f10.tar.gz otp-5a69967bf89327368cd45e000df054953fa74f10.tar.bz2 otp-5a69967bf89327368cd45e000df054953fa74f10.zip |
Merge branch 'maint'
* maint:
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). |