diff options
author | Björn Gustavsson <[email protected]> | 2017-01-25 07:26:33 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-02-03 13:34:22 +0100 |
commit | 13b6d01213c9ff39deafc3dd7672cc96dd6e8ab8 (patch) | |
tree | aec69d1f199502f5f4146b916459689c2786c287 /lib/asn1 | |
parent | c6c01899e81412edace1ac96d7eef1eb4cbfd655 (diff) | |
download | otp-13b6d01213c9ff39deafc3dd7672cc96dd6e8ab8.tar.gz otp-13b6d01213c9ff39deafc3dd7672cc96dd6e8ab8.tar.bz2 otp-13b6d01213c9ff39deafc3dd7672cc96dd6e8ab8.zip |
testMultipleLevels: Use asn1_test_lib:roundtrip()
Diffstat (limited to 'lib/asn1')
-rw-r--r-- | lib/asn1/test/testMultipleLevels.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/asn1/test/testMultipleLevels.erl b/lib/asn1/test/testMultipleLevels.erl index c610e59f3d..e9d83665aa 100644 --- a/lib/asn1/test/testMultipleLevels.erl +++ b/lib/asn1/test/testMultipleLevels.erl @@ -24,5 +24,7 @@ main(_) -> Data = {'Top',{short,"abc"},{long,"a long string follows here"}}, - {ok,B} = 'MultipleLevels':encode('Top', Data), - {ok,Data} = 'MultipleLevels':decode('Top', iolist_to_binary(B)). + roundtrip('Top', Data). + +roundtrip(T, V) -> + asn1_test_lib:roundtrip('MultipleLevels', T, V). |