test_elidetext.py 297 B

1234567891011
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from elidetext import elide_text
  4. def test_elide_text():
  5. assert elide_text('TS', 5) == 'TS'
  6. assert elide_text('tretrwetre', 5) == 'tret…'
  7. assert elide_text('🚲🚙💵👩💧🐟🕘', 5) == '🚲🚙💵👩…'