@@ -569,15 +569,15 @@ new_spec_pack_test_() ->
569569 msgpack :pack (list_minus_one (65536 ), [{spec ,new },{pack_str ,PackStr }]))]
570570 || PackStr <- [from_list , from_binary , none ]]
571571 },
572- {" pack_str with_tag " ,
572+ {" pack_str from_tagged_list " ,
573573 [? _assertEqual (<<2#101 :3 , 3 :5 , 97 ,97 ,97 >>,
574- msgpack :pack ({string , " aaa" }, [{spec ,new },{pack_str ,with_tag }])),
574+ msgpack :pack ({string , " aaa" }, [{spec ,new },{pack_str ,from_tagged_list }])),
575575 ? _assertMatch (<<16#D9 , 32 , _ :32 /binary >>,
576- msgpack :pack ({string , list_a (32 )}, [{spec ,new },{pack_str ,with_tag }])),
576+ msgpack :pack ({string , list_a (32 )}, [{spec ,new },{pack_str ,from_tagged_list }])),
577577 ? _assertMatch (<<16#DA , 1 , 0 , _ :256 /binary >>,
578- msgpack :pack ({string , list_a (256 )}, [{spec ,new },{pack_str ,with_tag }])),
578+ msgpack :pack ({string , list_a (256 )}, [{spec ,new },{pack_str ,from_tagged_list }])),
579579 ? _assertMatch (<<16#DB , 0 , 1 , 0 , 0 , _ :65536 /binary >>,
580- msgpack :pack ({string , list_a (65536 )}, [{spec ,new },{pack_str ,with_tag }]))
580+ msgpack :pack ({string , list_a (65536 )}, [{spec ,new },{pack_str ,from_tagged_list }]))
581581 ]
582582 }].
583583
@@ -616,7 +616,7 @@ new_spec_unpack_test_() ->
616616 ? _assertEqual ({ok , list_a (65536 )},
617617 msgpack :unpack (<<16#DB , 0 ,1 ,0 ,0 , (binary_a (65536 ))/binary >>, [{spec ,new },{unpack_str ,as_list }])),
618618 ? _assertEqual ({ok , {string , " aaa" }},
619- msgpack :unpack (<<2#101 :3 , 3 :5 , 97 ,97 ,97 >>, [{spec ,new },{unpack_str ,with_tag }]))
619+ msgpack :unpack (<<2#101 :3 , 3 :5 , 97 ,97 ,97 >>, [{spec ,new },{unpack_str ,as_tagged_list }]))
620620 ]}].
621621
622622unpack_str_validation_test_ () ->
0 commit comments