1. 25 May, 2021 1 commit
    • Daniel Martí's avatar
      add DeepEqual and start using it in tests · 6d29b3c3
      Daniel Martí authored
      The funciton is carefully documented via godoc, so I'm not going to
      attempt to document it here again. But as a high-level summary, it's
      like a reflect.DeepEqual applied to the ipld.Node interface rather than
      reflect.Value.
      
      The only other two noteworthy details are that errors are treated as
      panics, and Links are compared directly via ==.
      
      Finally, we add table-driven tests to ensure all edge cases work.
      
      Fixes #173.
      6d29b3c3