aboutsummaryrefslogblamecommitdiffstats
path: root/lib/asn1/test/testWSParamClass.erl
blob: ae67ca8b81271fa2dfad6ade8c9adef61460a7b3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                          
-module(testWSParamClass).
-export([main/1]).

main(_) ->
    IF = 'InformationFramework',
    roundtrip({'Attribute',IF:'id-at-objectClass'(),
	       [IF:'id-at-objectClass'()],
	       asn1_NOVALUE}),
    roundtrip({'Attribute',IF:'id-at-objectClass'(),
	       [],[]}),
    ok.

roundtrip(Data) ->
    IF = 'InformationFramework',
    {ok,Enc} = asn1_wrapper:encode(IF, 'Attribute', Data),
    {ok,Data} = IF:decode('Attribute', Enc),
    ok.