test_line_segment.py 401 B

123456789101112
  1. from freesurfer_surface import _LineSegment
  2. def test_eq():
  3. assert _LineSegment((67018, 67019)) == _LineSegment((67018, 67019))
  4. assert _LineSegment((67018, 67019)) == _LineSegment((67019, 67018))
  5. assert _LineSegment((67019, 67018)) == _LineSegment((67018, 67019))
  6. def test_repr():
  7. assert repr(_LineSegment((67018, 67019))) \
  8. == '_LineSegment(vertex_indices=(67018, 67019))'