   end
 
   test "decode_type/2: simple types" do
-    import Ser, only: [decode_type: 2]
-
     # booleans
     assert decode_type(<<0, "foo">>, :boolean) == {false, "foo"}
     assert decode_type(<<1, "foo">>, :boolean) == {true, "foo"}

             "foo">>

    list = {:link_list, [%RID{cluster_id: 1, position: 2}, %RID{cluster_id: 8, position: 9}]}
    assert Ser.decode_type(data, :link_list) == {list, "foo"}
  end

  test "decode_type/2: link sets" do

             <<122, 183>>, # value (31415)
             "foo">>

    assert decode_type(data, :decimal) == {Decimal.new(3.1415), "foo"}
  end

  ## Encoding

  test "encode_value/1: simple types" do
    # booleans
    assert bin(encode_value(true)) == <<1>>
    assert bin(encode_value(false)) == <<0>>
